SELECT *
FROM ( SELECT ROW_NUMBER() OVER ( ORDER BY EmployeeID DESC ) AS Rownumber ,
*
FROM HumanResources.Employee
) AS t
WHERE t.Rownumber BETWEEN ((currentPage - 1) * pageSize + 1) AND currentPage * pageSize