6 lines
296 B
MySQL
6 lines
296 B
MySQL
|
/*Write a SQL statement to prepare a list with salesman name, customer name and their cities for the salesmen and customer who
|
||
|
belongs to the same city.*/
|
||
|
SELECT salesman.name AS "Salesman",
|
||
|
customer.cust_name, customer.city
|
||
|
FROM salesman,customer
|
||
|
WHERE salesman.city=customer.city;
|