Code:
SELECT name FROM tabelle1 LEFT JOIN tabelle2 ON tabelle1.tid = tabelle2.tid AND tabelle2.status > 20 WHERE tabelle2.tid IS NULL
SELECT name FROM tabelle1 LEFT JOIN tabelle2 ON tabelle1.tid = tabelle2.tid AND tabelle2.status > 20 WHERE tabelle2.tid IS NULL
SELECT DISTINCT name FROM table1, table2 WHERE table1.tid = table2.tid AND table2.status < 20
"SELECT `NAME` FROM `table1`, `table2` WHERE table1.T1ID = table2.T1ID AND MIN(table2.Status) < 20 GRoUP BY table2.Status
Einen Kommentar schreiben: