If I have a SQL Table called Persons that contain about 30000 rows and I want to make a SQL query that retrieve the data of row number 1000 ... I got it by non
WITH MyCte AS
(
SELECT
[CategoryId]
,[CategoryName]
,[CategoryDescription]
,ROW_NUMBER() OVER (ORDER BY CategoryId ASC) AS RowNum
FROM
[Carmack].[dbo].[job_Categories]
)
SELECT *
FROM MyCte
WHERE RowNum = 3