MarrowGenx
MIS
I have a table that I would like in another format and I believe that it can be done with a query, I just dont know how to do it. Here is the information that I have:
UniqueID ObjectName1 ObjectName2 ObjectName3
1 ABC ATR BPI
2 ITO TRJ IPB
3 PPP WER CFR
Now I would like to convert this table's information into the following format:
UniqueID ObjectName
1 ABC
1 ATR
1 BPI
2 ITO
2 TRJ
2 IPB
3 PPP
3 WER
3 CFR
Now I would not have too much of a problem with this if I knew that the number of ObjectName's in the original table (top one) were constant (i.e. always ObjectName1 & ObjectName2 & ObjectName3). In this query, I need the number of ObjectName's in the original table (top one) to not be a issue when attempting to get the results (bottom one).
Please let me know if you have any suggestions. I appreciate your time.
Marrow
UniqueID ObjectName1 ObjectName2 ObjectName3
1 ABC ATR BPI
2 ITO TRJ IPB
3 PPP WER CFR
Now I would like to convert this table's information into the following format:
UniqueID ObjectName
1 ABC
1 ATR
1 BPI
2 ITO
2 TRJ
2 IPB
3 PPP
3 WER
3 CFR
Now I would not have too much of a problem with this if I knew that the number of ObjectName's in the original table (top one) were constant (i.e. always ObjectName1 & ObjectName2 & ObjectName3). In this query, I need the number of ObjectName's in the original table (top one) to not be a issue when attempting to get the results (bottom one).
Please let me know if you have any suggestions. I appreciate your time.
Marrow