Skip to content
Exercise · Set operations and CTEs · lesson 8 of 10

Exercise: everyone in one list

The chain is preparing New Year cards for the employees from the employees table and the customers from the customers table. Write a query that returns one combined list with columns name and role. In role, an employee has employee and a customer has customer.