I would like to make an UPDATE on some fields of a table including also a FROM condition like in the following:
UPDATE T_NEW_TABLE_IMPORT_STATUS TB
SET
    ID = NULL,
    IMPORT_DATE = NULL,
    IMPORT_STATUS = 0,
    ERROR_CODE = 3,
    LASTMODIFIEDAT = NULL
FROM T_BEDA
WHERE 1=1
    AND TB.TRANSACTION_ID = 999
    AND TB.TRANSACTION_ID = T_BEDA.TAC
    AND T_BEDA.SOP IS NULL;
In the current status it fails with the following error:
Error report -
SQL Error: ORA-00933: SQL command not properly ended
Apparently the FROM clause is not allowed in this case.
Basically, I would like this update to take place only when the T_BEDA.SOP is NULL.  How can I solve this using SQL or PL/SQL?
 
     
     
    