programming-examples/sql/Subqueries/1. Write a query to display all the orders from the orders table issued by the salesman 'Paul Adam'.sql

7 lines
236 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*1. Write a query to display all the orders from the orders table issued by the salesman 'Paul Adam'.*/
SELECT *
FROM orders
WHERE salesman_id =
(SELECT salesman_id
FROM salesman
WHERE name='Paul Adam');