You are group_concat for a query in Informix SQL that will mimic the MySQL group_concat function.
What is MySQL group_concat is the creation of an enumeration of all members in a group.
So, the data is as follows:
orderid:itemName:price 1:Paper :10 1:Pen :5 2:Sugar :15
and the following query:
select group_concat(itemName), sum(price) from order_details group by orderid
will create:
items :price Paper,Pen:15 Sugar :15
What would be the most efficient way to achieve this in Informix? Should we use a stored procedure?
source share