I am trying to delete some rows from table A with the where condition referring to another table. So basically deleting rows from table A also present in table B.
Following is the query I'm using:
delete Table_A from Table_A t1
join table_B t2
on t1.id = t2.id
where cndt_1 and cndt_2 and .... and cndt 7
-- The where conditions are just to check field values are same for multiple -- cols of the 2 tables
This query is deleting every single row present in table and I can't seem to understand why. I have tried the same query with left join too. Same result. I tried adding the where conditions just under on and also paired with where. In every case, it is deleting all the rows
cndt_1an so on mast be explained.