This website is for reference purposes only. Users are responsible for any misuse. The owner is not liable for any consequences.
Back to Database Management Systems (Laboratory)
4.1.2MediumCODE

Full Outer Join - Police Department

Question

Solution

SQL

SELECT
    officers.officer_id,
    officers.officer_name,
    officers.rank,
    assignments.precinct_id,
    assignments.precinct_name,
    assignments.years_of_service
FROM officers
FULL OUTER JOIN assignments
    ON officers.officer_id = assignments.precinct_id;

4/4 test cases passed

No hidden test cases