giggles7840
IS-IT--Management
xp/xir2/sql server
I'm pretty sure this is a variable question and I am really bad at variables.
I need to get a value from a record and create a column using that value. The value can be associated with an ID for each record. I am just not sure how to go about doing it.
Example:
GH1 Title
GH2 Yes ID#1
GH2 No ID#2
GH2 Maybe ID#3
GH2 Yes ID#4
GH2 No ID#5
GH2 City1 ID#1
GH2 City2 ID#2
GH2 City1 ID#3
GH2 City2 ID#4
GH2 City3 ID#5
and what i need is:
GH1 Title
GH2 Yes ID#1 City1
GH2 No ID#2 City2
GH2 Maybe ID#3 City1
GH2 Yes ID#4 City2
GH2 No ID#5 City3
GH2 City1 ID#1 City1
GH2 City2 ID#2 City2
GH2 City1 ID#3 City1
GH2 City2 ID#4 City2
GH2 City3 ID#5 City3
Any help is appreciated.
I'm pretty sure this is a variable question and I am really bad at variables.
I need to get a value from a record and create a column using that value. The value can be associated with an ID for each record. I am just not sure how to go about doing it.
Example:
GH1 Title
GH2 Yes ID#1
GH2 No ID#2
GH2 Maybe ID#3
GH2 Yes ID#4
GH2 No ID#5
GH2 City1 ID#1
GH2 City2 ID#2
GH2 City1 ID#3
GH2 City2 ID#4
GH2 City3 ID#5
and what i need is:
GH1 Title
GH2 Yes ID#1 City1
GH2 No ID#2 City2
GH2 Maybe ID#3 City1
GH2 Yes ID#4 City2
GH2 No ID#5 City3
GH2 City1 ID#1 City1
GH2 City2 ID#2 City2
GH2 City1 ID#3 City1
GH2 City2 ID#4 City2
GH2 City3 ID#5 City3
Any help is appreciated.