N g.householdID = m.householdID
LEFT OUTER JOIN relatedPair r ON r.personID1 = m.personID AND r.personID2... 1 ELSE 0 END, m.startDate DESC)
LEFT OUTER JOIN relatedPair r ON r.personID1 = p.personID AND r.personID2 =
(SELECT TOP 1 x.personID2 FROM relatedPair x
LEFT OUTER JOIN householdMember m ON m.ho