← All SQL interview questions
Three consecutive high-temperature readings
HardWindow FunctionsOracleWalmart
Cold-chain monitoring raises an incident when a freezer records a temperature above 8 degrees on three or more consecutive readings (ordered by reading_time within each freezer_code).
From freezer_readings, return the distinct freezer_code values that triggered at least one such incident.
Sample data
More Window Functions questions
Practising alone only goes so far — our live cohorts pair SQL depth with dashboards, agentic analytics projects and mock interviews.
Explore the program