Hi, I wanted to return the rows from cases table which are not in mail poller. But for somereason the following query is not giving me the expected result. Can someone help what mistake I am doing here.
SELECT * FROM `Cases` WHERE `fk_caseTypeRef_id` = 53 and case_id not in (SELECT fk_case_id FROM `MAIL_POLLER`);
Discussion posts and replies are publicly visible
you can also try this:-SELECT * FROM cases LEFT JOIN mail_poller ON cases.case_id = mail_poller.case_id WHERE mail_poller.case_id IS NULL;
Thank you. resolved
Fine! Please verify the answers to close this thread.