I have the following query:
select top 100 eid, cid, id, position, ROW_NUMBER() over(order by eid, cid, id) as record
from standings
where record = 2
This gives an invalid column error.
How can I only retrieve a specific record number. I need to do this to iterate through results one at a time for data conversion with a table that has no identity primary key (or primary key in general)
You can pull if from a CTE