6 lines
251 B
MySQL
6 lines
251 B
MySQL
|
/*Write a SQL statement to know which salesman are working for which customer.*/
|
||
|
SELECT a.cust_name AS "Customer Name",
|
||
|
a.city, b.name AS "Salesman", b.commission
|
||
|
FROM customer a
|
||
|
INNER JOIN salesman b
|
||
|
ON a.salesman_id=b.salesman_id;
|