Loading interview...
Top Services Per Provider
A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- staff
Interview Prompt
Given a cloud_costs table with provider, service name, and spend amounts, write a query that returns the top 2 services by total spend within each cloud provider. Include provider, service name, and total spend. If two services tie, include both.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your sql solution with real code execution
- Get instant feedback and a hire/no-hire decision