Problem 1789 · Easy

Primary Department for Each Employee

SQL walkthrough: keep the department flagged Y, or the only department an employee has even when its flag is N.

Open the interactive visualisation