Is there any analogue or simulation to the wonderful MySQL’s GROUP_CONCAT function? Say, I have two columns on the table: id, hobby. Every id may have 1 or more hobbies, like:
Id Hobby
1 Hiking
1 Dancing
2 Dancing
2 Swimming
3 Horse back riding
So, in MySQL I’d use
SELECT id, GROUP_CONCAT(hobby ORDER BY hobby SEPARATOR ’, ’) AS hobbies
FROM my_table
GROUP BY id;
The result would be:
Id Hobbies
1 Dancing, Hiking,
2 Dancing, Swimming,
3 Horse back riding,
Is there any way to do it in MS Access?
Thanks in advance!
Id Hobby
1 Hiking
1 Dancing
2 Dancing
2 Swimming
3 Horse back riding
So, in MySQL I’d use
SELECT id, GROUP_CONCAT(hobby ORDER BY hobby SEPARATOR ’, ’) AS hobbies
FROM my_table
GROUP BY id;
The result would be:
Id Hobbies
1 Dancing, Hiking,
2 Dancing, Swimming,
3 Horse back riding,
Is there any way to do it in MS Access?
Thanks in advance!