programming-examples/sql/QueryMultipleTables/Write a SQL statement to find the names of all customers along with the salesmen who works for them.sql
2019-11-18 14:05:53 +01:00

4 lines
226 B
SQL

/*Write a SQL statement to find the names of all customers along with the salesmen who works for them.*/
SELECT customer.cust_name, salesman.name
FROM customer,salesman
WHERE salesman.salesman_id = customer.salesman_id;