Write a query to find the top three most expensive listings in each zip code using window functions.
Use the listings table. Exclude rows with a missing ZIP code or listing price.
listing_id, zip_code, list_price, and listing_rank.zip_code, then listing_rank.listing_id.| Column | Type | Description |
|---|---|---|
| listing_idPK | INT | Unique identifier for the listing |
| zip_code | VARCHAR(10) | ZIP code where the listing is located |
| list_price | NUMERIC(12,2) | Current asking price of the listing |