Harsharan Kaur Section 6-1 October 17, 2020
Harsharan Kaur Section 6-1 October 17, 2020
Section 6-1
October 17, 2020
Section 6-1 # 1, 2
1. Create a cross-join that displays the last name and department name from the
employees and departments tables.
2. Create a query that uses a natural join to join the departments table and the
locations table. Display the department id, department name, location id, and city.
1. Join the Oracle database locations and department stable using the
location_id column. Limit the results to location 1400 only.
1. Return the first name, last name, and department name for all employees
including those employees not assigned to a department.
6. Create a report that shows the organization chart for the entire employee table.
Write the report so that each level will indent each employee 2 spaces. Since
Oracle Application Express cannot display the spaces in front of the column, use
- (minus) instead.
3. Write a query to display the title, type, description, and artist from the DJs on
Demand database.
8. Create a query of the Oracle database that shows employee last name,
department IDs, and department names. Include all employees even if they are
not assigned to a department.