Concatenate fields in related tables (1 Viewer)

Freshman

Registered User.
Local time
Today, 17:09
Joined
May 21, 2010
Messages
437
Hi all,

I need some help with the following please:

I have 2 related tables (on Field1) and I want a query to display the "concatenated" data without using a VBA function.

1678557557436.png


Thanks a lot!
 

Freshman

Registered User.
Local time
Today, 17:09
Joined
May 21, 2010
Messages
437
Thanks - yes I can do it with a function but it's not me that needs it this time. I need to give the SQL to another developer not using Access. I'm waiting to hear that language he is using but thought if I could give him something in pure SQL it would be eaier for him.
Anyway - will wait for him and then he must find a function in the platform he is using.

Thank again!
 

cheekybuddha

AWF VIP
Local time
Today, 15:09
Joined
Jul 21, 2014
Messages
2,280
If he is using a RDBMS other than Access, then it is likely that it will have a built-in equivalent function (eg GROUP_CONCAT() in MySQL)

What is the backend he is using?
 

Freshman

Registered User.
Local time
Today, 17:09
Joined
May 21, 2010
Messages
437
Thanks - will ask him about his backend as well. Not sure. They are a 3rd party who is supposed to work with us but keep thing close to their chest while still not delivering. Yes I know :)
 

theDBguy

I’m here to help
Staff member
Local time
Today, 07:09
Joined
Oct 29, 2018
Messages
21,473
In T-SQL, I've used the FOR XML PATH clause.
 

Users who are viewing this thread

Top Bottom