I have a table called Products with the schema (name, city, state, zip_code price).
And I want to find the most expensive products\' name for a given state\'s each zip_c
Something like this:
SELECT name,price,zip_code FROM products WHERE state='NJ' AND price=(SELECT MAX(price) FROM products)