M
M
Max Trophy2016-10-25 15:52:17
SQL
Max Trophy, 2016-10-25 15:52:17

SQL how to make GROUP BY grouping without aggregation?

Hey!
The question is.
lines 7, 8: the values ​​in the first two fields are the same, in the last - different.
The first 2 columns I need to group, but the last one cannot use aggregation. I think the easiest way is comma separated values, I can't figure out how to do it. Maybe there is some function in MS SQL Server 2014?
a6697a6b26f7439680398e47e8593d38.PNG
I want to get the result like this:
67f317f9b49a4a1faa6db9c9fbd7c4f7.PNG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2016-10-25
@kapitoly

stackoverflow.com/questions/451415/simulating-grou...

R
romy4, 2016-10-25
@romy4

use GROUP_CONCAT()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question