i have a simple delete query i have two tables table1 and table2
the query is
DELETE FROM table1
WHERE end_time NOT IN (SELECT end_time
FROM table2
WHERE comp_name = 'component')
AND id = 'id'
the query does not delete the record what am i missing here i tried to change the first condition with second but it deletes without checking the condition 2
what are the alternatives here?
i am wondering what is the actual problem here the query runs without errors but it is not correct.