programming-examples/sql/Subqueries/1. Write a query to display all the orders from the orders table issued by the salesman 'Paul Adam'.sql
2019-11-18 14:05:53 +01:00

7 lines
236 B
SQL

/*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');