- Display the avg(sal) of each department sorted according to sum of salaries of each dept wise.
- Display the number of employees for all the jobs.
- Display the sum of average salaries of all the jobs.
- Display the sum of all the average salaries of all the employees who is working as clerk or manager.
- Display all enames and dnames of emp and dept tables.
- Display the employee information who is working as manager in department ‘SALES’.
- Display the grades of employees based on their salaries from grade and emp table.
- Display the experience of employees in months as well as in years without using library functions.
- Display the employee name and his department name he is working with.
- Display the sum of all the employees who has salary greater than average salaries of their respective departments.
- Display the employee information whose salary is greater than the average salary of all the employess.
- Display the job,avg(sal) from emp table whose salary of each employee is greater than the maximum average salary of job.
- List all the employees names who draws max salary for each department.
- List all the employess whose sal is greater than all average salaries of all jobs.
- List only first five employess who draws the highest salary from the emp table.
- Edit all the names, jobs of an employee to make only their initial letter as capital.
- Insert the dname of the dept with the job(having dname of its deptno as its suffix) of the emp table and make the initial letter capital.
- Delete only those rows that are of dept 30.
- Insert any one duplicate record and delete it.
- Delete all the rows in the student table.
- Add a primary constraint to the existing student table field stid.
- Delete the table student.
- Calculate the cumulative sal of all the employees.
- Select an employee who dont have a manager.
- List all the dept names that are contained in the emp table.
Wednesday, October 22, 2008
SQL Practice Test 3
Labels:
SQL practice
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment