I am getting an error in this query like incorrect syntax near distinct statement
DECLARE @CNT INT
SELECT @CNT= DISTINCT ISNULL(Employee.id,0)
FROM Employee
WHERE EMPLOYEE.NAME='KIRAN'
is there anything wrong in syntax
SELECT DISTINCT ISNULL(Employee.id,0)
FROM Employee
WHERE EMPLOYEE.NAME='KIRAN'
this statements works fine
thanks prince