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.
|
/*12. Write a query to create a view that shows each salesman with more than one customers.*/
|
|
CREATE VIEW mcustomer
|
|
AS SELECT *
|
|
FROM salesman a
|
|
WHERE 1 <
|
|
(SELECT COUNT(*)
|
|
FROM customer b
|
|
WHERE a.salesman_id = b.salesman_id); |