2
Reply

SQL QUERY: The Top Two Scores

David Smith

David Smith

Mar 30 2013 3:14 AM
1.2k
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)