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.
8 lines
349 B
SQL
8 lines
349 B
SQL
/*Write a SQL statement to make a list in ascending order for the salesmen who works either for one or more customer or not
|
|
yet join under any of the customers.*/
|
|
SELECT a.cust_name,a.city,a.grade,
|
|
b.name AS "Salesman", b.city
|
|
FROM customer a
|
|
RIGHT OUTER JOIN salesman b
|
|
ON b.salesman_id=a.salesman_id
|
|
ORDER BY b.salesman_id; |