Mysql
 SQL >> Datenbank >  >> RDS >> Mysql

WHERE korrekt mit MySQL INNER JOIN verwenden

Eine Abfrage kann nur einen top-level WHERE haben.

Mehrere Bedingungen werden mit AND kombiniert:

SELECT t1.f_id FROM table1 t1 INNER JOIN table2 t2 ON t2.f_id = t1.f_id WHERE t2.f_type = 'InProcess' AND t1.f_com_id = '430' AND t1.f_status = 'Submitted';