Jump to content

Recommended Posts

Posted

Does anyone know how to perform an aggregate string concatenation in Microsoft Access without using a VBA module? I want pure SQL.

 

Across columns of a table is easy. Ex:

 

People

 

Id* Name* Dob

1** John**1/2/1975

2** Bob** 1/2/1975

3** Tim** 5/7/1955

 

MS Access SQL:

 

SELECT p.Id, (p.Name & ' ' & p.Dob) AS Person

FROM People p

 

I have no idea how I would go about concatenating rows. Does anyone have experience with that?

 

Ex: Get a comma-delimited list of people with the same birthday

 

Results should look like this:

 

Dob*******People

1/2/1975* John, Bob

5/7/1955* Tim

 

Thanks for the help.

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...