Editing SQL 2

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 24: Line 24:
==== 9 - 21 EmpDept queries. ====
==== 9 - 21 EmpDept queries. ====
9. output of those employees who receive more commission than salary.
9. output of those employees who receive more commission than salary.
10. output of all employees from department 30 whose salary is greater than or equal to 1500.
10. output of all employees from department 30 whose salary is greater than or equal to 1500.
11. output of all managers who do not belong to department 30.
11. output of all managers who do not belong to department 30.
12. output of all employees from department 10 who are neither managers nor clerical workers (CLERK).
12. output of all employees from department 10 who are neither managers nor clerical workers (CLERK).
13. output of all employees who earn between 1200,- and 1300,-.
13. output of all employees who earn between 1200,- and 1300,-.
14. output all employees whose name is 5 characters long and begins with ALL.
14. output all employees whose name is 5 characters long and begins with ALL.
15. output the total salary (salary + commission) for each employee.
15. output the total salary (salary + commission) for each employee.
16. output all employees, whose commission is over 25% of the salary.
16. output all employees, whose commission is over 25% of the salary.
17. searched is the average salary of all office employees.
17. searched is the average salary of all office employees.
18. searched is the number of employees who have received a commission.
18. searched is the number of employees who have received a commission.
19. wanted is the number of different jobs in department 30.
19. wanted is the number of different jobs in department 30.
20. wanted is the number of employees in department 30.
20. wanted is the number of employees in department 30.
21. output of employees hired between 4/1/81 and 15/4/81.
21. output of employees hired between 4/1/81 and 15/4/81.


Please note that all contributions to Coders.Bay Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see CB Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)