Exercise 1
Exercise 1
3. Describe emp
4. Describe Dept.
5. Describe programmer.
6. Alter table by adding primary key for the attribute empno in Emp table.
7. Alter table by adding foreign key for the attribute mgr in the table Emp.
(a) commit
(b) rollback
(c) savepoint
15. List all employee names and their salaries, whose salary lies between 1500/- and 3500/- both
inclusive.
16. List all employee names and their and their manager whose manager is 7902 or 7566 0r 7789.
18. List all employee names and jobs, whose job title includes M or P.
21. List all employee names , salary and 15% rise in salary.
23. Find how many job titles are available in employee table.
24. What is the difference between maximum and minimum salaries of employees in the
organization?
25. Display all employee names and salary whose salary is greater than minimum salary of the
company and job title starts with ‘M’.
26. Find how much amount the company is spending towards salaries.