I try to execute a query which takes all data from a table. I would like to use pagination as their is a constration in the results. So I try to insert pagination in the query like this
What I tried is this
Select ROW_NUMBER() OVER (ORDER BY reputation) as row, *
From users
Where reputation > 1000000 AND row >= ##StartRow:INT?1##
AND row <= ##EndRow:INT?50000##
ORDER BY row
The error I receive is this:
Invalid column name 'row'. Invalid column name 'row'.
What can I do?