Quantcast
Channel: Questions in topic: "ms sql"
Viewing all articles
Browse latest Browse all 16

Want to combine multiple rows of a distinct query to 1 line per distinct entry

$
0
0
I want to join the results of a distinct query so that I get 1 line per distinct entry. Let's say my table looks like this: IDCode Value ID1 1 ID1 2 ID1 3 ID2 1 ID2 2 I want the result of my query to be: IDCode Values ID1 1,2,3 ID2 1,2 Can this be done in entirely in SQL?

Viewing all articles
Browse latest Browse all 16

Trending Articles