7 lines
299 B
SQL
7 lines
299 B
SQL
/*Write a SQL statement to make a list in ascending order for the customer who works either through a salesman or by own.*/
|
|
SELECT a.cust_name,a.city,a.grade,
|
|
b.name AS "Salesman",b.city
|
|
FROM customer a
|
|
LEFT JOIN salesman b
|
|
ON a.salesman_id=b.salesman_id
|
|
order by a.customer_id; |