Professional Documents
Culture Documents
ICT501 Exercise 6 Joins New
ICT501 Exercise 6 Joins New
ICT501 Exercise 6 Joins New
KAMPUS SEREMBAN
ICT501
TITLE:
Exercise 6 (joins)
NAME STUDENT ID
NUR HAZIERA BINTI BAHAR 2019608162
NUR NAJIHAH BINTI HASAN 2019695876
SITI NOR SYUHADA BINTI BAHREN 2019726063
SITI NUR AFIFAHALIN BINTI MOHD JAINUDDIN 2019853948
CLASS: N4CS2413T2
1. Display all employee names and their department name, in department name order.
SELECT *
FROM EMP E JOIN SALGRADE S
ON E.EMPNO = S.EMPNO
WHERE S.GRADE = 3;
7. List the employee name, job, salary, grade and department name for everyone in the company
except clerks. Sort on salary, displaying the highest salary first.
8. List ename, job, annual salary, deptno, dname, and grade for employees who earn $36000 a
year or who are clerks.
11. List all employees by name and number along with their manager's name and number.
13. Find the Job that was filled in the first half of 1983, and the same Job that was filled during the
same period in 1984.
14. Find all employees who joined the company before their manager.