Hi I am trying to query data based on the ROW_NUMBER() function.
SELECT ROW_NUMBER() OVER(ORDER BY Id) AS CountRow,
ProductId, ProductName, Tracklink, ProductImage, TrackPrice FROM ProductDetails;
I have my row with the numbers in CountRow column. Now I want to query this Alias to find rows for example between 31 and 40. But I get an error saying CountRow does not exist.
How can I overcome this issue?
thanks….
Hope this helps.