Avatar of STOCRIC
STOCRIC
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

How to concatenate entries?

I have 2 tables
1. tblENQUIRY and
2. tblENQUIRY_FOLLOW_UP

The history contains the PK ENQUIRY_ID from the  tblENQUIRY

 tblENQUIRY tblENQUIRY_FOLLOW_UP SAMPLE DATA IN FOLLOW UP
What I need to do is create a new table with the 2 columns
ENQUIRY_ID and ENQ_FU_COMMENT

for each ENQUIRY_ID concatenate all of the individual lines in just one line.

like this ...
 what it should look like
I really appreciate help on this.

My solution does not work correctly.

best regards
Microsoft SQL Server 2008

Avatar of undefined
Last Comment
Bhavesh Shah

8/22/2022 - Mon