Never ran into this before. I'd like to do it in SQL, but I can in Excel as a fall-back... It's a relatively small set of data.
Suppose I have the following data:
foo | val
----+-----
A | red
A | blue
B | up
B | down
...and I want the result...
foo | agg
----+---------
A | red,blue
B | up,down
So if I could invent my own aggregate functions, it would be:
select foo
,concat(val,',') as agg
from mytable
group by 1
Does anything like this exist? Specifically I'm on Netezza.
Thanks!