Find the IDs of all weather records where the temperature is strictly higher than the temperature recorded on the immediately preceding calendar day. If a date is missing from the table (a gap), that day has no record and cannot form a valid comparison. Return column `id`, ordered by `id` ascending.
Loading…
Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.
Ask questions, share alternate queries, and explore solutions
Your recent query executions and answer checks
This will insert the verified MySQL solution into your editor so you can study how each clause transforms the table.