SyntaxFix
Write A Post
Hire A Developer
Questions
You can achieve this using exists:
exists
DELETE FROM table1 WHERE exists( SELECT 1 FROM table2 WHERE table2.stn = table1.stn and table2.jaar = year(table1.datum) )