programming-examples/sql/View/4.Write a query to create a view to getting a count of how many customers we have at each level of a grade.sql
2019-11-18 14:05:53 +01:00

5 lines
217 B
SQL

/*4.Write a query to create a view to getting a count of how many customers we have at each level of a grade. */
CREATE VIEW gradecount (grade, number)
AS SELECT grade, COUNT(*)
FROM customer
GROUP BY grade;