i have this table:
select A.field1, a.field2, a.field3, a.store
from (
select 'g1' as field1, 'g2' as field2, 'g3' as field3, 's1' as store union all
select 'g1' as field1, 'g2' as field2, 'g3' as field3, 's2' as store union all
select 'g1' as field1, 'g2' as field2, 'g3' as field3, 's3' as store union all
select 'g1' as field1, 'g2' as field2, 'g3' as field3, 's4' as store union all
select 'g1' as field1, 'g2' as field2, 'g3' as field3, 's4' as store
) A
The output is the next:
field1 field2 field3 store
g1 g2 g3 s1
g1 g2 g3 s2
g1 g2 g3 s3
g1 g2 g3 s4
g1 g2 g3 s4
And i would like the next:
field1 field2 field3 store
g1 g2 g3 s1_s2_s3_s4
Is this possible?
Thanks!