![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, let's say at table has columns A, B and C and I do: SELECT A, B, COUNT(*) FROM TABLE GROUP BY A, B so, we know that each result "record" has a unique (A,B) and a sum of which Cs had that A and B. Now, is there anyway in pure SQL to provide a comma separated list of those Cs? E.g: A1, B1, "C1, C2, C3" A2, B2, "C1, C4, C5" Otherwise, I suppose I would have to resort to stored procedures or a scripting language to post-process the database results. |
#3
| |||
| |||
|
|
.. each result "record" has a unique (A,B) and a sum of which Cs had that A and B. |
|
Now, is there anyway in pure SQL to provide a comma separated list of those Cs? |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |