DataDriven
LearnPracticeInterviewDiscussDailyJobs

User 360

A hard SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.

Domain
SQL
Difficulty
hard
Seniority
L6

Interview Prompt

The product team wants a one-row-per-user activity summary, including users with zero activity. For every user, count their rows in transactions and their rows in user_sessions, substituting 0 when either side is empty. Return the username, transaction count, and session count.

Summary

One row per user. Everything they did, or didn't do.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision

Related

  • All Mock Interviews
  • Practice Mode (untimed)
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Practice Problems
  • Daily Challenge