D
deb
I am working with a database that has many columns with the same data type. I
need to compile this data into a single column - replicating the data in the
other columns to create a series of separate records for each of the other
columns that are not null.
For example:
Original Table:
NAME RED YEL GRN
John Smith -1 -1 0
Sue Jones 0 0 -1
End Table:
NAME RED YEL GRN
John Smith -1
John Smith -1
John Smith 0
Sue Jones 0
Sue Jones 0
Sue Jones -1
Thank you in advance,
need to compile this data into a single column - replicating the data in the
other columns to create a series of separate records for each of the other
columns that are not null.
For example:
Original Table:
NAME RED YEL GRN
John Smith -1 -1 0
Sue Jones 0 0 -1
End Table:
NAME RED YEL GRN
John Smith -1
John Smith -1
John Smith 0
Sue Jones 0
Sue Jones 0
Sue Jones -1
Thank you in advance,