Question: More practice with Joins & Set Operators 1 . Equality Join: Write a query that will retrieve the names of customers along with the
More practice with Joins & Set Operators
Equality Join: Write a query that will retrieve the names of customers along with the titles of the books they have ordered. To do this, you will need to join customer, orders, and orderitems tables with the books table on their common fields. Pks & Fks
Nonequality ioin: List all employees along with their salary grades based on their monthly salary. Use a nonequality ioin to determine which grade range their salary falls into. To do this you will need to join the employees table to the SalaryGrade table. Youll need to upload JLDBsql and the SalaryGrade.sql file to do this
SelfJoin: Identify employees who are managers along with their subordinates. This requires a selfioin on the Employees table using the MGR and EMPNO fields
OuterJoin: List all publishers and the books they have published. Include publishers who currently have no books in the database.
Set Operators: Retrieve a list of all authors who have either authored a book or are listed as contacts for any publisher without duplicates Use the UNION operator of the Author and Publisher tables
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
