programming-examples/sql/Union/3. Write a query to display all the salesmen and customer involved in this inventory management system.sql

6 lines
218 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*3. Write a query to display all the salesmen and customer involved in this inventory management system.*/
SELECT salesman_id, customer_id
FROM customer
UNION
SELECT salesman_id, customer_id
FROM orders;