I have 2 tables in which one is inserted the records that come from a file txt
and the other the records that come from a file excel
.
With this, I need to delete the records of the txt
table that contain the excel
table, in the case of the same ones.
Only there are files in the txt
table starting with 0 and in the excel
table, and the system does not understand it as equal and does not exclude.
How can I make it also delete records containing 0 in the beginning?
My delete looks like this:
DELETE
TEMP_IMPORTACAO_TXT
FROM
TEMP_IMPORTACAO_TXT TXT
INNER JOIN
TEMP_IMPORTACAO_EXCEL EX
ON
TXT.CAMPO = EX.CAMPO