Brug join til dette.
DELETE T1 -- Make sure only include T1 here.
FROM tb_allinc_sin_trace T1
INNER JOIN tb_outdoors T2 ON T1.confirmation_number = T2. confirmacion_nro
WHERE T1.dates = T2.servicio_fecha;
For at bekræfte, hvilke poster der vil blive slettet, kan du bruge select statement.
SELECT *
FROM tb_allinc_sin_trace T1
INNER JOIN tb_outdoors T2 ON T1.confirmation_number = T2. confirmacion_nro
WHERE T1.dates = T2.servicio_fecha;
Reference: