select a.empname,a.phone,@designation from empdetails a where a.joiningdate = '2010-11-04' group by a.dept, a.empname, a.phone, @designation
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)