Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 2 largest scores of each students

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-01-18 : 08:28:46
Dai Le writes "SQL 7.0, Win NT 4.0
Table
Name Score
================
Student1 10
Student1 7
Student1 8
Student2 10
Student3 6
Student3 7

Result
- excludes all students with less than 2 scores
- shows all students with 2 largest scores
Name Score
================
Student1 10
Student1 8
Student3 7
Student3 6

Many thanks."
   

- Advertisement -