sql - Convert the multiple rows Select statement result into a single row string result -
I have the following SQL query: I want the results to be combined with a ,
And I want to do this as a single query.
select LOCATION_CODE from LOCATION where ZIPCODE = '555555';
Location table
location_id | Location_code | Zipcode -------------------------------------------- 1 | ASDFSFD | 555555 2 OUIXVCX | 555555 3 2 KLJSDF | 555555 14 | 887 CCD | 555555
The results below require ... ASDFSFD, OUIXVCX, 2KLJSDF, 887CSD
Comments
Post a Comment