Do you ever wonder if somebody has dropped off by reason of expired credit card or change of credit card?
The query below when pasted into the SQL tab on the contribution list will produce a list of those people who have given a recurring donation in the last 90 days but have not made one in the last 30 days. It will provide a means for you to determine those folks who may have dropped off for one of the reasons above that you may need to make further inquiries about.
/*
CONTRIBUTIONS LIST QUERY
The list may not contain unique donors, but should be what we are looking for
*/
((
-- who had a recurring contribution in the last 90 days...
(((TB010611.CL010568>= Convert(datetime, Convert(int, GetDate()))-90 )) AND CL047343 IN (49220,49230,49221,49227,49222,49228,49223,49229,49224,49226))
AND
-- that was on a credit card...
(CL010582=3)
) AND (
-- where the donor has NOT contributed in the last 90 days
(NOT (EXISTS (SELECT CL010562 FROM TB010611 WHERE ((CL010595=TB008485.CL005500) AND (((CL010568>= Convert(datetime, Convert(int, GetDate()))-30 )) AND ((CL010568< Convert(datetime, Convert(int, GetDate())) )))))))
))
In my database, I found 3 people that meet this criteria and I need to check with the donor to see about getting updated credit card information: