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.
|
/*10. Write a query to create a view that shows the number of the salesman in each city.*/
|
|
CREATE VIEW citynum
|
|
AS SELECT city, COUNT (DISTINCT salesman_id)
|
|
FROM salesman
|
|
GROUP BY city; |