I have two tables that simplified would look like this
tblPatients
PatientNumber
PatientName
tblVisits
VisitNumber
PatientNumber
VisitDate
I need to do a select that will take the PatientNumber and Name from Patients if they haven't visited since 12/31/98. For example, Joe has two visits in the visit table, one on 2/10/98 and the other on 1/26/99. He should not be selected. Steve also has two visits in the table. One on 7/5/98 and one on 7/7/98. He should be selected.
Can anyone lead me to the right SQL statement? I keep getting returns with both Joe and Steve on the list.
Thanks!
tblPatients
PatientNumber
PatientName
tblVisits
VisitNumber
PatientNumber
VisitDate
I need to do a select that will take the PatientNumber and Name from Patients if they haven't visited since 12/31/98. For example, Joe has two visits in the visit table, one on 2/10/98 and the other on 1/26/99. He should not be selected. Steve also has two visits in the table. One on 7/5/98 and one on 7/7/98. He should be selected.
Can anyone lead me to the right SQL statement? I keep getting returns with both Joe and Steve on the list.
Thanks!