programming-examples/sql/QueryMultipleTables/Write a SQL statement to find the names of all customers along with the salesmen who works for them.sql

4 lines
226 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*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;