adventurous1
Programmer
Hi...
Not very SQL savvy with this so any help is appreciated.
Two problems...
1. Case 1 - Data is structured like this:
ID Component
1 Hood
1 Body
1 Fender
2 Windshield
3 Bumper
3 Tire
I need to transform this to look like this:
ID Component
1 Hood, Body, Fender, Windshield, Bumper, Tire
2 Windshield
3 Bumper, Tire
2. Case 2 - Data is structured like this:
ID Component Status Insurance
1 Hood Fixed Allstate
1 Body In Process Geico
1 Fender Open State Farm
1 Window Fixed Allstate
2 Windshield Open State Farm
3 Bumper In Process Allstate
3 Tire In Process Geico
I need to transform this to look like this:
ID Fixed_Allstate_Comps In_Process_Geico Open_StateFarm
1 Hood, Window Body Fender
2 Windshield
3 Bumper Tire
Can anyone help me by posting code for this? I am trying to meet a deadline to save my contract so any help offered is appreciated.
Not very SQL savvy with this so any help is appreciated.
Two problems...
1. Case 1 - Data is structured like this:
ID Component
1 Hood
1 Body
1 Fender
2 Windshield
3 Bumper
3 Tire
I need to transform this to look like this:
ID Component
1 Hood, Body, Fender, Windshield, Bumper, Tire
2 Windshield
3 Bumper, Tire
2. Case 2 - Data is structured like this:
ID Component Status Insurance
1 Hood Fixed Allstate
1 Body In Process Geico
1 Fender Open State Farm
1 Window Fixed Allstate
2 Windshield Open State Farm
3 Bumper In Process Allstate
3 Tire In Process Geico
I need to transform this to look like this:
ID Fixed_Allstate_Comps In_Process_Geico Open_StateFarm
1 Hood, Window Body Fender
2 Windshield
3 Bumper Tire
Can anyone help me by posting code for this? I am trying to meet a deadline to save my contract so any help offered is appreciated.