I would like to change the output of this query, into the second snippet with less rows:
id row_id element_id container_id text answer
--------------------------------------------------------------------
1 1 10 100 Question1: Yes
1 1 10 100 Did you check... Yes
1 2 10 100 Question2: Yes
1 2 10 100 Did you verify... Yes
Desired output:
id row_id element_id container_id Question answer
----------------------------------------------------------------------------
1 1 10 100 Question1: Did you check.. Yes
1 2 10 100 Question2: Did you verify... Yes
Therefore making the table shorter. I know this can be done in MySQL with a group_concat
function, but I was not able to apply it correctly to my need.
Any help would be great.
Thank you