Practice production SQL interview problems—window functions (ROW_NUMBER, DENSE_RANK, LAG/LEAD), recursive CTEs, gaps-and-islands, and conditional pivoting—with AI execution plan feedback.
Write your SQL solution for your custom SQL query above, then run AI Analysis (or press Ctrl+Enter) to check edge cases, NULL handling, and window frame performance.