Learned
SQL229
Milestones
Top 100
1,297 runs in the past 26 weeksActive days: 9 · Max streak: 4
MarAprMayJunJulAugSep
Recent solves
From event_data, return event_id and JSON_EXTRACT_SCALAR(payload, '$.currency') AS currency for even
SQL · medium · lesson
From event_data, count events per utm_source using JSON_EXTRACT_SCALAR(properties, '$.utm_source')
SQL · medium · lesson
From event_data, return event_id and JSON_EXTRACT_SCALAR(properties, '$.utm_source') AS utm_source f
SQL · medium · lesson
Use a CTE to extract the first and second tags from the tags array
SQL · medium · lesson
Extract the SKU and quantity of the first item from each purchase event's payload using JSON_EXTRACT
SQL · medium · lesson
Group events by the 'source' field extracted from payload using JSON_EXTRACT_SCALAR
SQL · medium · lesson
Find button click events and extract the button_id from the payload JSON column.
SQL · medium · lesson
Find all events that have a 'country' property defined
SQL · medium · lesson
For each event, list the names of all its properties as prop_names and count how many properties it
SQL · medium · lesson
For each event, return event_id and its tags sorted alphabetically with duplicates removed.
SQL · medium · lesson