I have a staging table in oracle, all columns are set to varchar2 to accept text data from excel import functionality. Once the data is bulk copied to staging table, I validate the data & flag errors for records which failed validation.
One of my validation statement throws an error of "Invalid Number". Is there any way to stop oracle from evaluating the right side of AND condition when left side has failed?
My update statement is as below & the AMT columns has text non-numeric data.
UPDATE StagingTable
SET ErrorTXT = Error_txt || 'Invalid Amount, '
WHERE f_isnumber (INV_AMT) > 0
AND TO_NUMBER (INV_AMT) > 9999999999.99;
INV_AMT column as junk non numeric data. I am expecting the left side of the condition which evaluates to false, for non-numeric data, should stop evaluation of right side & thus Invalid Number error should not be thrown. Is there any hint I can use?