You don't have an account yet?
Become part of our PHP community and register now...
SELECT t1.id FROM tabelle1 t1 LEFT JOIN tabelle2 t2 ON t1.spalteX = t2.spalteY WHERE t2.spalteY IS NULL
SELECT DISTINCT t1.SpalteX FROM tabelle1 t1 LEFT JOIN tabelle2 t2 ON t1.spalteX = t2.spalteY WHERE t2.spalteY IS NULL
Comment