Find the names of all the customers and staff members.
SELECT customer_details FROM customers UNION SELECT staff_details FROM staff
names of all the customers refers to customer_details from the customers table; names of all staff members refers to staff_details from the staff table; UNION is used to combine the results of two SELECT queries.