Table with columns student_id, course_id, exam_score: list students whose score in every course is above that course's average score. Asked in the First interview stage. Candidate answered with a join to per-course averages and a tag flag. Write a SQL query using the exam_scores table.
student_id only.student_id ascending.| Column | Type | Description |
|---|---|---|
| student_idPK | INT | Identifier of the student |
| course_idPK | INT | Identifier of the course |
| exam_score | NUMERIC(5,2) | Student exam score for the course |