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.
|
/*27. Write a query to find only those customers whose grade are, higher than every customer to the city New York.*/
|
|
SELECT *
|
|
FROM customer a
|
|
WHERE NOT EXISTS
|
|
(SELECT *
|
|
FROM customer b
|
|
WHERE a.grade<=b.grade
|
|
AND b.city='New York'); |