Rajat
Rajat

Reputation: 451

''cannot output multiple independently repeated fields at the same time'' error upon querying

There are four fields with multiple rows. I wish to append these rows. Is there a way to do it?

Sample data:

Here's an Example (Sample Data)

Upvotes: 2

Views: 1688

Answers (1)

Mikhail Berlyant
Mikhail Berlyant

Reputation: 172993

I see only two fields in your example
Below should work for them

SELECT
  Name, GROUP_CONCAT(Nickname) AS Nicknames
FROM Yourtable
GROUP BY Name  

Upvotes: 1

Related Questions