Rows to column with comma separated
I want to convert table A to table B as below.
Table A :
col1
a
b
c
d
e
Table B:
col1
a,b,c,d,e
Kindly provide me a solution using only sql or any function in vertica
0
I want to convert table A to table B as below.
Table A :
col1
a
b
c
d
e
Table B:
col1
a,b,c,d,e
Kindly provide me a solution using only sql or any function in vertica
Comments
How about using group_concat UDx in Vertica.
Example usage :
Using group_concat function :
You can get this UDx from Vertica Marketplace
Hi Navin,
I am unable to get group_concat UDx in Vertica.
Can you please download and send that to me here as an attachment.
Hi,
You can download the strings_package from the URL https://github.com/vertica/Vertica-Extension-Packages/tree/master/strings_package
Group_concat is present in strins_package. Instructions on how to install package are present in the above given URL.
-Regards,
Sruthi