S.No  Name  Path
1     a      a/b/c
2     b      x/y/z
3     a      a/b/c
4     c       t/y/z
5     b      x/y/z
in my sql to find repeated values
select Name,Path,Count(Name), group_concat(S.No) as Concatlist from tab 
group by Name, Path
OutPut will be 
a   a/b/c   2     1,3
b   x/y/z   2     2,5
c    t/y/z  1     4
Same query i want in ms sql server..
Please notice concatlist S.No column not using in group by....
 
    