Académique Documents
Professionnel Documents
Culture Documents
DATE : 8 NOVEMBER,2010
employee dept.
sal_grade
//OUTPUT:
empno 2
name chiku
sal 4000
desig sr.mgr
deptno 20
dob 2-jan-1969
gender F
//OUTPUT:
sr.manager
manager
clerk
supervisor
q5.)WAQ to display employ no, name of all managers from dept no 40 whose salary is<10000
SELECT * FROM employ WHERE gender=’M’ and dob>’1-jan-1980’ and salary BETWEEN 30000
AND 40000;
Q7.)WAQ to display employ no., name and designation of all employs from dept no. 10,30 and 50.
Q8.)WAQ to display employ no. and name of those employs who have not been given designation.
Q9.)WAQ to create a new table containing employ no. , name and department name.
DESCRIBE employ;
Q13.)WAQ to increase salary of all sr. managers by 25% who belong to department no. 20 or 40.
Q14.)WAQ to change designation of managers to senior managers whose date of birth is before 15 Sep
1975.
Q16.)WAQ to add a new column to table department called location constraints being not null.
Q18.)WAQ to display department name and number and total number of employs in each department of
only those department where number of employs <10..
Q21.)WAQ to display complete detail in descending order of salary and ascending order of name.
Q22.)WAQ to display department wise number of employs ,sum of their salary,maximum,minimum and
average salary.
Q25.)WAQ to display employ number and name of all employ whose date of birth is after 1 Jan 1985.