MySQL Forums
Forum List  »  General

Re: trying to combine rows
Posted by: douglas wilson
Date: August 18, 2014 12:55AM

You can use the Group_Concat command for combine two rows.It can easily combine the rows.

I will put some example here,

SELECT student_name, GROUP_CONCAT(test_score) FROM student GROUP BY student_name;

First of all you must create the Student table with student name and test_score after that insert the values in to the table using insert into statement.

Options: ReplyQuote


Subject
Written By
Posted
June 19, 2014 02:43PM
June 19, 2014 02:51PM
June 19, 2014 03:00PM
Re: trying to combine rows
August 18, 2014 12:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.