RuralGuy the dates for the two records were the same, so the criteria should met both records. I appreciate you guys trying to help me with this issue.
Here I uploaded another table where some records with the NULL fields are also pulled in the query, you will also see why I have the join on the subty as well. I can't understand why this is happening. The table named ActivityTable New is the one you guys saw earlier.