Abnormal AIHardSQL & Data Manipulation00:00

Welcome to your interview for the Data Analyst role at Abnormal AI.
The question is on your right: Optimize Rolling 30-Day Aggregation. Take a moment with it first.
Talk your thinking through with me if you like - when you're confident, submit your answer and I'll grade it like a real screen. You have three graded attempts to score 7/10 or better.
Optimize a slow-running query that aggregates daily threat detection events over a rolling 30-day window.