0

I'm getting a syntax error but I do not know where it is. I'm trying to find the nth row in a table in SQL.

I am using C# with OleDb as the connection.

SELECT 
    TName, CTPoints 
FROM 
    (SELECT 
         ROW_NUMBER() OVER (ORDER BY CTPoints ASC) AS RowNumber, 
         *
     FROM 
         TeamChampionship) AS foo 
WHERE 
    RowNumber = 1

Any help is appreciated.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

0 Answers0