8 lines
282 B
MySQL
8 lines
282 B
MySQL
|
/*22. Write a query to display the customers who have a greater gradation than any customer who belongs to the alphabetically
|
||
|
lower than the city New York.*/
|
||
|
SELECT *
|
||
|
FROM customer
|
||
|
WHERE grade > ANY
|
||
|
(SELECT grade
|
||
|
FROM CUSTOMER
|
||
|
WHERE city < 'New York');
|