Because you don't want to limit the whole result set, just the subset of members present on that date.
The original query I posted had the following logic:
Return rows for all members, joining all records in RegMem, marking those not present with an 'N', BUT that have a row in RegMem with an SDate of xyz. This is contradictory rubbish.
The revised query has this logic:
Return rows for all members, joining ONLY those rows in RegMem with an SDate of xyz, marking those not present with an 'N'.
This is surprisingly hard to explain!![]()
Hope I got close though![]()




Reply With Quote