I have a select statement and returns one column but many rows. I want to convert that to a single string with commas like below.
SELECT CODE FROM LG_xxx_CLCARD WHERE CODE < 'KUR' AND CODE > 'CARI1'
this returns
ASD1
ASD2
ASD3
I want to convert this to
'ASD1','ASD2','ASD3'
How can I do this in SQL?