I have a table Like below
I want to separate the column by comma if the "StartDate" Field is same like below
EmpID OtherReportID Status StartDate
371 2,381,2 0 2013-11-05 17:59:00:000
371 381 0 2013-11-08 17:59:00:000
371 2 0 2013-11-10 17:59:00:000
371 381 0 2014-08-15 00:00:00:000
I tried the below code, just put the number if it is same
select DENSE_RANK() over(order by startdate) dd,* from Emp_tb_Eob_OtherReportingManager;