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.
programming-examples/sql/View/9. Write a query to create ...

7 lines
227 B
SQL

/*9. Write a query to create a view that shows all of the customers who have the highest grade.*/
CREATE VIEW highgrade
AS SELECT *
FROM customer
WHERE grade =
(SELECT MAX (grade)
FROM customer);