Selcet Leave, ( SELECT SUBSTRING( ( SELECT '+' + T2.Remark FROM EmpTable T2 where T2.Leave=T1.Leave FOR XML PATH('')),2,200000) AS Remark ) as Remark from EmpTable as T1 Group by Leave
Select distinct Empcode,Leave, ( SELECT SUBSTRING( ( SELECT '+' + T2.Remark FROM EMptest T2 where T2.Leave=T1.leave and T2.Empcode=T1.EmpCode FOR XML PATH('')),2,200000) AS Remark ) as Remark from EMptest as T1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)