ROW_NUMBER() window function to assign a row number to each entry, partitioned by city_id and ordered by degree descending and day ascending.city_id, day, and degree columns from the filtered results.city_id in ascending order.erDiagram
Weather {
int city_id
date day
int degree
city_id day PK
}