Skip to content
SQLSimplified
Data AnalystQuestion 56 of 57

Combining Results with UNION

Problem

Return a single column named id containing all employee_ids from the employees table AND all department_ids from the departments table. Remove duplicates.

Try It

Loading playground environment...

Hint

Solution