programming-examples/sql/Union/1. Write a query to display all salesmen and customer located in London.sql

8 lines
258 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*1. Write a query to display all salesmen and customer located in London.*/
SELECT salesman_id, name
FROM salesman
WHERE city='London'
UNION
SELECT customer_id, cust_name
FROM customer
WHERE city='London';