Sorry for the un-precise title, but a bit hard to summarize ...
OK I have a table "table1"
With let's say 4 fields : f1,f2,f3,f4.
f1 f2 f3 f4
1 1 test hello
1 1 blabla something
1 2 Merry XMas
1 3 Happy New Year
1 3 ABC DEF
I would like to create a query that would return something like this :
q1 q2 q3 q4
1 1 test,blabla hello,something
1 2 Merry XMas
1 3 Happy,ABC New Year,DEF
Basically, it schould do a group by f1, f2 and concatenate in some way the values of the other fields.
The only way I managed to do this before is by code, putting the recordset in an array for example (using loops). But this time it would be really great to have this as a query result (recordset).
Any idea ?
OK I have a table "table1"
With let's say 4 fields : f1,f2,f3,f4.
f1 f2 f3 f4
1 1 test hello
1 1 blabla something
1 2 Merry XMas
1 3 Happy New Year
1 3 ABC DEF
I would like to create a query that would return something like this :
q1 q2 q3 q4
1 1 test,blabla hello,something
1 2 Merry XMas
1 3 Happy,ABC New Year,DEF
Basically, it schould do a group by f1, f2 and concatenate in some way the values of the other fields.
The only way I managed to do this before is by code, putting the recordset in an array for example (using loops). But this time it would be really great to have this as a query result (recordset).
Any idea ?