From user_sessions, count how many sessions started in the year 2024 as total_2024
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
Problem
From user_sessions, count how many sessions started in the year 2024 as total_2024. WHERE session_start is between '2024-01-01' and '2024-12-31'.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.