anthonymeluso
IS-IT--Management
I have two tables. I called AlumniList and the other DonationList. I need to run a report that shows me that someone hasn't donated this year when they had in the past. The query below does not return any results. Does anyone have any suggestions?
SELECT Donations.DonationDate, AlumniList.FirstName, AlumniList.LastName, AlumniList.Class, Donations.Donation
FROM AlumniList INNER JOIN
Donations ON AlumniList.AlumniID = Donations.AlumniID
WHERE (Donations.DonationDate < '2005/12/31 11:59:00 PM')and AlumniList.AlumniID Not In
(select Donations.AlumniID
From Donations
Where (Donations.DonationDate > '2006/01/01 12:00:00 AM'))
Thanks!
Anthony
SELECT Donations.DonationDate, AlumniList.FirstName, AlumniList.LastName, AlumniList.Class, Donations.Donation
FROM AlumniList INNER JOIN
Donations ON AlumniList.AlumniID = Donations.AlumniID
WHERE (Donations.DonationDate < '2005/12/31 11:59:00 PM')and AlumniList.AlumniID Not In
(select Donations.AlumniID
From Donations
Where (Donations.DonationDate > '2006/01/01 12:00:00 AM'))
Thanks!
Anthony