Bruger ROW_NUMBER()
(dokumentation
)
SELECT ROW_NUMBER() OVER (ORDER BY EmpID ASC) AS No,
EmpID, EmpName, Salary
FROM Employee
Bruger ROW_NUMBER()
(dokumentation
)
SELECT ROW_NUMBER() OVER (ORDER BY EmpID ASC) AS No,
EmpID, EmpName, Salary
FROM Employee