The SQL file contains Two simple IF conditions, but it is not executing in TOAD:
IF (SELECT COUNT(COLUMNNAME1) FROM TABLENAME1 WHERE COLUMNNAME1 = 'UNIQUEID1') > 0)
BEGIN
(UPDATE QUERY1)
END;
IF (SELECT COUNT(COLUMNNAME1) FROM TABLENAME1 WHERE COLUMNNAME1 = 'UNIQUEID2') > 0)
BEGIN
(UPDATE QUERY2)
END;
But these are individually executing successfully, please let me know if the query is missing something.
Executed successfully and IF condition passes to update the table in the database
Should be more like this:
You may want to commit your changes somewhere in this script, too.