I am using Oracle 10.2.0 and I am new with it. I need a sql Statement
I have开发者_如何学Python a table with 3 columns. in the column1 are numbers and same of them have equals values in column2 and cloumn3 are String. How can I get the Strings from column2 and column3 together separated with ";" when Numbers from column1 are equals.
thanks
Ïf you have access to the analytical functions:
SELECT column1, LISTAGG(column2, ',') WITHIN GROUP (ORDER BY column2) AS ConcatedValues
FROM table
GROUP BY column1;
精彩评论