I have a query like this: Select something FROM tablea JOIN tableb ON tablea.employee_id = tableb.employee_id AND entity_id = 1 AND person_dtl_id = (SELECT MAX(person_dtl_id) from detail det where det.person_id = person_id and det.employee_id = employee_id and det.entity_id = Ientity_id). Can you have multiple Where Predicates like this in the Correlated Subquery with MAX or is it more efficient to use TOP 1. Thanks