下面給出了基於新,舊錶值的新列是我的數據如何使甲骨文
Name Country
s India
d Ind
c Afric
r Africa
f Ind
v India
有在全國列很多錯誤的結構。下面是一個包含識別錯誤
Old Value New Value Source Column
Ind India Avox Country
Afric Africa Avox Country
我需要下表包含國家
的正確值Name Country New_Column
s India India
d Ind India
c Afric Africa
r Africa Africa
f Ind India
v India India
下面給出的是我使用的命令表。這只是數據的快照。我的數據非常大
merge into L03_a_AVOX_DATA_test n using (
SELECT old_value , new_value
FROM Transformation_Data_all where column_identifier='Country' and Source_identifier='Avox'
) o ON (n.Country = o.old_value)
WHEN MATCHED THEN
n.New_Column = o.new_value;