Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Write a query which joins the faculty table with the faculty_department table with the department table. The query should return the first_name and last_name

5. Write a query which joins the faculty table with the faculty_department table with the department table. The query should return the first_name and last_name from the faculty table, and the name column from the department table. This should be an inner join.

6. Write a query which identifies both the faculty who have been assigned to a department, and the faculty who have NOT been assigned to a department (no corresponding records in the faculty_department table). The query should return the faculty first name and last name and the name of the department. This query should use an outer join.

Department- Department_id, Name

Faculty- faculty_id, first_name, last_name

faculty_department- faculty_id, dpeartment_id

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions