We help IT Professionals succeed at work.
Get Started

How to combine several value in SQL

132 Views
Last Modified: 2016-04-02
Hi,

How can I combine serval lines' comments value if the line number more than 1? Need it in SQL statement.

Below is the current data output:

ID        Line     Type   Comment
23         1           A         This is
23         2           B          Test
24         1           C          Testing
25         1           B          Testing


Below is what I want to display:

ID        Line     Type   Comment
23         1           A         This is Test
23         2           B         This isTest
24         1           C          Testing
25         1           B          Testing


Thanks in advance.
Comment
Watch Question
Business Intelligence Developer and Analyst
CERTIFIED EXPERT
Top Expert 2015
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE