I\'ve 2 tables, emp_master and passport_details.
emp_master(emp_id,first_name,email_id,dob,doj,status.........) passport_details(id, emp_id,passport_number,given
select em.emp_id, em.first_name from emp_master em left join passport_details pd on pd.emp_id = em.emp_id and pd.status = 1 where pd.emp_id is null
I don't have a 3.23 instance to test with, but this should work.