Who can help me make the following query work...
Both tables have the fields month, year and userId. And I want to delete rows in both Tables for the exact same values for month and year.
DELETE FROM Table1, Table2 WHERE Table1.month NOT IN (1,2) AND Table1.year NOT IN (1, 2) AND Table1.userId = 1 AND Table2.userId = Table1.userId
Thanks.