I have these two tables:
Groups:
+----+-------+------+
| ID | Title | Info |
+----+-------+------+
| 1 | Red | |
| 2 | Blue | |
| 3 | Green | |
+----+-------+------+
Contacts:
+----+-------+----------------+
| ID | Name | Contact |
+----+-------+----------------+
| 1 | Joe | joe@test.com |
| 3 | Billy | billy@test.com |
| 3 | Sally | sally@test.com |
+----+-------+----------------+
I am trying to match them based on ID, and move all of the data from Contacts to the 'info' field in Groups so there is only one table, without having duplicate records for each contact.
+----+-------+----------------------------------------------+
| ID | Title | Info |
+----+-------+----------------------------------------------+
| 1 | Red | Joe: joe@test.com |
| 2 | Blue | |
| 3 | Green | Billy: billy@test.com, Sally: sally@test.com |
+----+-------+----------------------------------------------+
Am I overstepping bounds by trying to use SQL to do this? I can't figure out how to aggregate multiple fields into one field using SQL. I am using MS Access so maybe I should look into using VBA to perform this right before I export the data.
Edit: Not a duplicate of Microsoft Access condense multiple lines in a table I am condensing multiple fields into one, not just one field into one.