There are bulk of sites providing information on STUFF AND FOR XML PATH but I want to know the actual use and where it can be implemented.
Please guide
SELECT DISTINCT
sno,
STUFF ((SELECT ','+Scity
FROM @abcdef T1
WHERE T1.sno = T2.sno
FOR XML PATH('')), 1, 1, '')
FROM
@abcdef T2
Now in the example above please tell me what are those quotes and 1,1 used for.