Tell me about your approach to answering medium-level SQL questions and related data concepts.
Use the supplied relational data to demonstrate that approach by summarizing medium-difficulty questions by topic. Include topics with no recorded attempts and calculate metrics only from available scores.
topic, question_count, attempted_count, average_score, and pass_rate.NULL for unavailable score metrics.topic.| Column | Type | Description |
|---|---|---|
| question_idPK | INT | Unique question identifier |
| topic | VARCHAR(100) | SQL or data concept tested |
| difficulty | VARCHAR(20) | Question difficulty level |
| Column | Type | Description |
|---|---|---|
| attempt_idPK | INT | Unique attempt identifier |
| question_id | INT | Question being attempted |
| score | INT | Attempt score from 0 to 100 |