Hello All,
I have the below query returning the result set. I just want to get the total records returned by the query. But iam not able to get the count. Please let me know how can we achieve this. Iam running this query in a function.
select count(MclId) from vDCRDoctordetails
where LocationId=121 and month(DcrDate)=4 and year(DcrDate)=2011
and UserId=121 group by MclId having count(MCLId)=1
Thanks,
Vijay