Lab 9
Lab 9
Course Title:
Database Systems
Submitted To:
Mam Mehwish
Submitted By:
Fatima Mumtaz (009)
Fatima Nisar (010)
Hajra Babar (013)
Maryam Khalid (074)
1) Write a query to display the last name, department number, and
department name for all employees.
2) Create a unique listing of all jobs that are in department 30. Include the
location of department 40 in the output.
5) Write a query to display the employee name, job, department number and
department name for all employees who work in ‘DALLAS’.
6) Display the employee name and employee number along with their
manager name and manager number. Label the columns Employee, Emp #,
Manager and Mgr # respectively.
7) Modify the above query to display all employees including King, who has
no manager. Order the results by employee number.
8) Create a query that displays the employee name, department number, and
all the employees who work in the same department as a given employee.
Given each employee an appropriate label.