programming-examples/sql/Union/2. Write a query to display distinct salesman and their cities.sql

6 lines
166 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*2. Write a query to display distinct salesman and their cities.*/
SELECT salesman_id, city
FROM customer
UNION
SELECT salesman_id, city
FROM salesman;