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.
programming-examples/sql/Joins/Write a SQL statement to pr...

6 lines
296 B
SQL

/*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;