ASSICNMENT#2 BASIC QUERIES PERFORM THESE QUERIES: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. LIST ALL EMPLOYEES WHO ARE MANAGERS.

LIST ALL EMPLOYEES WHO ARE CLERKS. LIST ALL EMPLOYEES WHO ARE SALESMAN. LIST ALL EMPLOYEES WHO ARE PRESIDENTS. LIST ALL EMPLOYEES WHO ARE ANALYSTS. HOW MANY MANACERS ARE WORKING IN THE COMPANY? HOW MANY CLERKS ARE WORKING IN THE COMPANY? HOW MANY SALESMEN ARE WORKING IN THE COMPANY? HOW MANY PRESIDENTS ARE IN EMP TABLE? HOW MANY ANALYSTS ARE IN EMP TABLE? HOW MANY EMPLOYEES ARE IN THE COMPANY? LIST ALL EMPLOYEES WHO ARE EITHER MANAGER OR CLERK. LIST ALL-EMPLOYEES WHO ARE EITHER MANAGER OR ANALYST. LIST ALL EMPLOYEES WHO ARE EITHER PRESIDENT OR MANAGER. LIST ALL EMPLOYEES WHO ARE EITHER MANAGER OR SALESMAN. LIST ALL EMPLOYEES WHO ARE EITHER MANAGER OR CLERK. LIST ALL EMPLOYEES WHO ARE MANAGERS OF DEPARTMENT NUMBER 10. LIST ALL EMPLOYEES WHO ARE WORKNG IN DEPARTMENT NUMBER 10. HOW MANY EMPLOYEES ARE IN DEPARTMENT NUMBER 10. LIST ALL EMPLOYEES WHO ARE CLERK OF DEPARTMENT NUMBER 10. LIST ALL EMPLOYEES OF DEPARTMENT NUMBER 20. LIST ALL EMPLOYEES WHO ARE MANAGER IN DEPARTMENT NUMBER 20. LIST ALL EMPLOYEES WHO ARE ANALYST IN DEPARTMENT NUMBER 20. LIST ALL EMPLOYEES WHO ARE CLERK IN DEPARTMENT NUMBER 20. HOW MANY EMPLOYEES ARE WORKING IN DEPARTMENT NUMBER 20? LIST ALL EMPLOYEES WHO ARE WORKING AS A MANAGER IN DEPARTMENT NUMBER 20.

27. 28. 29. 30. 31. 32.

LIST ALL EMPLOYEES WHO ARE 'CLERK' IN DEPARTMENT NUM8ER 30. LIST ALL EMPLOYEES WHO ARE WORKING IN DEPARTMENT NUMBER 30. LIST ALL EMPLOYEES WHO ARE WORKING AS A SALESMAN IN DEPARTMENT NUMRER 30. HOW MANY EMPLOYEES DO WE HAVE IN DEPARTMENT NUMBER 30. LIST ALL EMPLOYEES WHO ARE NOT MANAGER. LIST ALL EMPLOYEES WHO DO NOT WORK IN DEPARTMENT NUMBER 10, 20 AND 30.

33. LIST ALL EMPLOYEES WHO ARE MANAGER, CLERK OR SALESMAN AND WORK IN DEPARTMENT NUMBER 10, 20. 34. LIST ALL EMPLOYEES WHO ARE NOT BELONGING TO DEPARTMENT NUMBER 20, 30, 40 AND ARE NOT MANAGER. 35. LIST ALL EMPLOYEES WHO ARE EITHER MANAGER OF DEPARTMENT NUMBER 10 OR ARE ANALYST. 36. LIST ALL EMPLOYEES WHO ARE MANAGER ANALYST OR CLERK.

37. LIST ALL EMPLOYEES WHO ARE EITHER MANAGER OR CLERK AND NOT WORKING IN DEPARTMENT NUMRER 10, 20, 30. 38. 39. 40. LIST ALL EMPLOYEES WHO ARE NOT PRESIDENT, ANALYST OR SALESMAN. LIST ALL EMPLOYEES WHO DO NOT BELONG TO DEPARTMENT NUMBER 10, 20. LIST ALL EMPLOYEES WHO WORK IN DEPARTMENT NUMRER 10 AND THEIR JOB IS CLERK.

THE END.

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.