How to concatenate strings from multiple rows in one column + inner join in one query
问题 I have a query with the following result: query: SELECT Tasks.TaskId, Comments.Comment, comments.timespent FROM comments INNER JOIN tasks ON comments.entityid = tasks.taskid WHERE ( comments.entity = 1 ) GROUP BY Tasks.TaskId, Comments.Comment, comments.timespent Result: TaskID Comment TimeSpent __________________________ 111754 C1 4 111754 C2 1 111754 C3 79 Please tell me how should I write my query to get the result as follows: TaskID Comment TimeSpent __________________________________