I'm extracting data from Oracle into a local Microsoft access database. The data stored in access is then used by a number of local staff. This approach is being used due to issues with creating views in the Oracle database & giving Oracle access to everyone.
One of my local tables has the following six columns:
* CURRENT_VALUE_STR
* CURRENT_VALUE
* NEW_VALUE_DATE
* NEW_VALUE_INT
* NEW_VALUE_STR
* NEW_VALUE
Only one of the six columns starting in CURRENT and/or NEW will be populated at the one time. For example if NEW_VALUE and CURRENT_VALUE_STR, is populated, NEW_VALUE_DATE, NEW_VALUE_INT, NEW_VALUE_STR & CURRENT_VALUE won't be.
Given the amount of white space I'd like to find a way of consolidating the six columns down to two (CURRENT_VALUE & NEW_VALUE). What is the best way of doing this? I'm thinking of an 'INSERT INTO' query, but don't know if that is the best way.
One of my local tables has the following six columns:
* CURRENT_VALUE_STR
* CURRENT_VALUE
* NEW_VALUE_DATE
* NEW_VALUE_INT
* NEW_VALUE_STR
* NEW_VALUE
Only one of the six columns starting in CURRENT and/or NEW will be populated at the one time. For example if NEW_VALUE and CURRENT_VALUE_STR, is populated, NEW_VALUE_DATE, NEW_VALUE_INT, NEW_VALUE_STR & CURRENT_VALUE won't be.
Given the amount of white space I'd like to find a way of consolidating the six columns down to two (CURRENT_VALUE & NEW_VALUE). What is the best way of doing this? I'm thinking of an 'INSERT INTO' query, but don't know if that is the best way.