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
  • 704,970
  • 168
  • 1,303
  • 1,425

0 Answers0