Put it together: for each event return event_id, the tag count, and whether it is tagged 'premium' (
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
Problem
Put it together: for each event return event_id, the tag count, and whether it is tagged 'premium' (1 or 0), but only for events that carry more than 2 tags. Columns: event_id, tag_count, is_premium. Order by tag_count descending then event_id ascending.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.