81

Students Above Class Average

Hardsubquerymultiple JOINsAVG

Problem Description

Write a SQL query to find students who scored above their class average in Mathematics.

Expected Columns

  • student_name
  • class
  • marks
  • class_avg

Example Output

| student_name | class | marks | class_avg | |--------------|-------|-------|-----------| | Ishaan Malhotra | 10 | 92 | 80.4 | | Shreya Pillai | 10 | 95 | 80.4 | | ... | ... | ... | ... |

Hints

Unlocks after 2 more attempts
Submit your solution to unlock hints
//#81 Students Above Class Average
Hard

Loading schema...

Loading editor...

No results yet

Run a query to see results