I have a table
Field1 Field2 Field3 Field4
--------------------------
----------
-----
a b c 12
a b c 23
c d b 11
a c d 88
c d b 99
I want a query that would give me rows only for unique combinations of field1, field2 and field3. and for this combination, the fourht field will have values comma separated.
ie.. the output for the above sample data would be:
"a" "b" "c" "12,23"
"c" "d" "b" "11,99"
"a" "c" "d" "88"
Is this possible through sql queries only? Or, will I have to take help of stored proc and cursor in cursor logic?
Thanks,
Shweta
Start Free Trial