i have 2 tables. First table SEC_SEAL_LOG with columns:
DATA_ADD,
DATA_AREA,
SEAL_NUMBER,
DATA_SEALING,
DATA_UNPLUG,
SORRUPTED.
SEC_WRITING_OFF_SEALS
The error Column Ambiguously Defined
occurs when a column name is present in more than one table, and you have failed to specify which table.
You are doing that in this line: and SEAL_NUMBER = SEAL
(which you have twice).
From which table to you want to compare that SEAL value?
Write it as SEC_SEAL_LOG.SEAL
or SEC_WRITING_OFF_SEALS.SEAL
or whatever table name you are trying to compare this value from, and it will get rid of the Column Ambiguously Defined
error.