Closing the Books
An easy SQL mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- SQL
- Difficulty
- easy
- Seniority
- L3
Interview Prompt
Finance needs one revenue figure for April 2026 to close the month, built from `transactions`. Despite its name, `total_amount` is recorded per unit, so a sale brings in its `quantity` times that amount.
Summary
April is done. Finance wants the number, and it isn't the one printed on the invoice line.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your SQL against a real database
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision