I am using SQLSERVER 2005
Can anyone help to concatenate character values into one string where the Field1 has the same reference. Output from one of my tmp tables looks like this:-
Field1 field2
32061350 Gas Works
32071470 Boiler Room
36010060 Boiler Room
36031890 Support Agency
40012540 Support Agency
40012540 Staff Needed
40030560 Gas Works
40080070 Staff Needed
40080070 Outside Gas
40080070 Boiler Room
I want the output to show as:-
Field1 Field2
32061350 Gas Works
32071470 Boiler Room
36010060 Boiler Room
36031890 Support Agency
40012540 Support Agency - Staff Needed
40030560 Gas Works
40080070 Staff Needed - Outside Gas - Boiler Room
The can be many field2 to field1.
Hope someone can help
Can anyone help to concatenate character values into one string where the Field1 has the same reference. Output from one of my tmp tables looks like this:-
Field1 field2
32061350 Gas Works
32071470 Boiler Room
36010060 Boiler Room
36031890 Support Agency
40012540 Support Agency
40012540 Staff Needed
40030560 Gas Works
40080070 Staff Needed
40080070 Outside Gas
40080070 Boiler Room
I want the output to show as:-
Field1 Field2
32061350 Gas Works
32071470 Boiler Room
36010060 Boiler Room
36031890 Support Agency
40012540 Support Agency - Staff Needed
40030560 Gas Works
40080070 Staff Needed - Outside Gas - Boiler Room
The can be many field2 to field1.
Hope someone can help