7 lines
227 B
MySQL
7 lines
227 B
MySQL
|
/*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);
|