MediumThe difficulty is Medium, because the solution involves combining two datasets of dates, establishing a timeline of events, and computing time gaps between consecutive hires and fires. This requires advanced manipulation techniques such as setting window frames, merging subsets, and handling conditional calculations across multiple event types.
ID 2045
0
Write a query to calculate the longest period (in days) that the company has gone without hiring anyone.
This question is part of a paid planUnlock the full question bank, official solutions and other users’ approaches.Unlock this question5-day money-back guarantee · Cancel anytime