TelecomCorp wants to analyze call quality degradation patterns across their cell...
TelecomCorp wants to analyze call quality degradation patterns across their cell tower network. For each cell tower, they want to identify consecutive time periods where call drop rates exceeded the 5% threshold, and calculate how the drop rate changed compared to the previous hour. Write a query that returns towers with their consecutive high-drop periods, showing the hour, drop rate, and the change from the previous hour's drop rate. Only include hours where the drop rate exceeded 5%, and order results by tower_id and hour.
Example 1
Example 2
- ›Return columns: tower_id, hour_timestamp, drop_rate, rate_change
- ›Only include hours where drop_rate > 5.0
- ›Calculate rate_change as difference from previous hour
- ›Handle NULL for first occurrence per tower
- ›Order by tower_id, then hour_timestamp
Reference solution available after you attempt the question.
Ready to solve it?
Start a session on Mockbit #56. Write your SQL, run it against real data, and get graded on correctness, efficiency, query structure, and business understanding.
- #46A streaming platform wants to identify content that's experiencing 'viewership...medium
- #55AdMetrics Agency manages digital advertising campaigns across multiple channelsmedium
- #57A hedge fund tracks daily portfolio performance across multiple trading...medium
- #41You're analyzing user engagement for a social media platformeasy
- #42A video streaming platform tracks user viewing sessionshard