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