Mysql – Is it possible to replace not exists with join in this query?
I have this query SELECT * FROM table1 as t1 WHERE (t1.phone != "" OR t1.sms_phone != "") and t1.docType in (1,2,3) and not exists (select id from table2 where product_id=1 and doc_id=t1.id); And I want to replace the part…