I'm looking for a way to do the following in SQL.
Let's say we have 3 columns on a table (a, b, c). There is an undefined number of c's per each a, b grouping. If I do a simple select off of the table, I'll get one row of output per each a - b - c combination:
a1 b1 c1
a1 b1 c2
a1 b2 c1
a2 b1 c1
a2 b1 c2
a2 b1 c3
What I need, is to get is one row of output per each a b combination:
a1 b1 c1 c2
a1 b2 c1
a2 b1 c1 c2 c3
Any thoughts?
Let's say we have 3 columns on a table (a, b, c). There is an undefined number of c's per each a, b grouping. If I do a simple select off of the table, I'll get one row of output per each a - b - c combination:
a1 b1 c1
a1 b1 c2
a1 b2 c1
a2 b1 c1
a2 b1 c2
a2 b1 c3
What I need, is to get is one row of output per each a b combination:
a1 b1 c1 c2
a1 b2 c1
a2 b1 c1 c2 c3
Any thoughts?