So we have PIVOT keyword in Oracle /SQL Serverwhen you convert rows to columns. Not in DB2, I want to convert row results and concatenate them into a column, dynamically, as in, I do not know the number of rows I might get, they might vary. Eg table x
COL1  COL2
ABC  10
ABC  20
ABC  30
I want to display this as
COL1  COL2
ABC   10,20,30
But the count of records might vary so I cannot use case.
Want to do this for queries of many tables not a particular query; a function or most preferably in the select query itself.
 
     
     
    