SELECT Stuff(
(
SELECT ‘, ‘ + stdm.session_code
FROM Table_mapping stdm where stdm.staff_id=’2015′ and NewSession=’AGR-4’
FOR XML PATH(”)
), 1, 2, ”) AS ‘Old Session’
Advertisements
SELECT Stuff(
(
SELECT ‘, ‘ + stdm.session_code
FROM Table_mapping stdm where stdm.staff_id=’2015′ and NewSession=’AGR-4’
FOR XML PATH(”)
), 1, 2, ”) AS ‘Old Session’