SELECT * FROM tabell1 where ID IN (SELECT ID FROM tabell2) AND Value NOT IN (SELECT Value FROM tabell2)