Usando
ROW_NUMBER()
(documentação
) SELECT ROW_NUMBER() OVER (ORDER BY EmpID ASC) AS No,
EmpID, EmpName, Salary
FROM Employee
ROW_NUMBER()
(documentação
) SELECT ROW_NUMBER() OVER (ORDER BY EmpID ASC) AS No,
EmpID, EmpName, Salary
FROM Employee