feature_events has one row per product usage event (event_id, product_category). Count the events recorded for each product category. Output columns: product_category, event_count. Order by product_category ascending.
| Column | Type |
|---|---|
| event_id | INTEGER |
| product_category | TEXT |
| event_id | product_category |
|---|---|
| 1 | Database |
| 2 | Analytics |
| 3 | Database |
| 4 | Cloud |
| 5 | Analytics |
| 6 | Database |
| product_category | event_count |
|---|---|
| Analytics | 2 |
| Cloud | 1 |
| Database | 3 |
Solve it in the live editor on this page — run on sample data, then submit against hidden tests.
‹ Next-Day Account Verification · Branch Card Issuance Spread ›
{{ totalCount }} questions in the style asked at Amazon, Microsoft, Google, Meta, Flipkart and more — {{ hardPct }}% Hard. Write SQL in a real database engine in your browser, run it on sample data, then evaluate against hidden tests.
Company tags show where this type of question is commonly reported in interviews. Questions, data and solutions are written by TechTown.
{{ cur.statement }}
No submissions yet. Press Evaluate to submit your query.
{{ solutionSql }}
{{ out.error }}
You have solved your 3 free questions — nice work! Log in (free) to unlock all 150 questions, keep your streak and appear on the leaderboard.