We have to use a null column to Hardcoded Value 'Yes'. Can't use simple script
update my_table
set column='Yes'
where column is Null
Since we have huge chucks of data, this isn't the way. What is the best way to update it?
We have to use a null column to Hardcoded Value 'Yes'. Can't use simple script
update my_table
set column='Yes'
where column is Null
Since we have huge chucks of data, this isn't the way. What is the best way to update it?
Instead of updating billions of rows with only field as "Yes" for every record, I would suggest you to create another lookup table and add record in it only when source record has other than
"Yes"using your Primary Key from Original Table with new Lookup table.Search this table against your
my_tablerow. If the record is found inLookupTablethanmyTextvalue otherwise false.