You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
296 B
MySQL
6 lines
296 B
MySQL
5 years ago
|
/*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;
|