David Smith

David Smith

  • NA
  • 2k
  • 0

SQL QUERY: The Top Two Scores

Mar 30 2013 3:14 AM
SQL QUERY: I trying to come up with sql to choose the top two high score reports for each student. only the top scores will count for each student can someone assist me


StudentID    RPT1   RPT2   RPT3
1                   3.0     0.3      4.9
2                   2.0     5.3      5.9
3                   0.0     2.3      5.9
4                   1.0     3.3      2.9




For example, for student 1, the RPT1 and RPT3 will be chosen because they are the top high scores


For example, for student 2, the RPT2 and RPT3 will be chosen because they are the top high scores

Answers (2)