programming-examples/sql/Subqueries/6. Write a query to display the commission of all the salesmen servicing customers in Paris.sql

7 lines
237 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*6. Write a query to display the commission of all the salesmen servicing customers in Paris.*/
SELECT commission
FROM salesman
WHERE salesman_id IN
(SELECT salesman_id
FROM customer
WHERE city = 'Paris');