Group events by the 'source' field extracted from payload using JSON_EXTRACT_SCALAR
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
Problem
Group events by the 'source' field extracted from payload using JSON_EXTRACT_SCALAR. Return the extracted source aliased as traffic_source and the count of events aliased as event_count. Order by event_count descending.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.