Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the following data :

ID. col1 col2 col3
-----------------------
1. data1. data2. data7
2. data1. data2. data8
3. data1. data2. data9

I need it to combine these in a single row.

ID. col1. col2. col3. col4. col5. col6
-------------------------------------------
1. data1. data2. data3. data7. data8. data9

Thank you in advance.

What I have tried:

I must apologize, but sql is not my strong suit. I have looked at group by and that seems to be the ticket, but i can't make it work.
Posted
Updated 13-Apr-22 14:59pm

1 solution

This google search gives multiple solutions depending on the sql system you are using: sql row to column[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900