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
Nemám instanci 3.23 k testování, ale mělo by to fungovat.
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
Nemám instanci 3.23 k testování, ale mělo by to fungovat.