Hei!
How can I create an aggregate function to obtain a list of the aggregate values.
given :
key value
Andrei 1
Andrei 2
Andrei 3
Mihai 4
Mihai 5
Mihai 6
I want
key list
Andrei 1,2,3
Mihai 4,5,6
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MS SQL solution:
[Note: This solution only works on SQL 2005 and later. Original question didn’t specify the version in use.]