bebblebrox
IS-IT--Management
Hi,
My table (gift_history) looks like this:
query looks like this:
now donor 3890 does in fact have otal gifts from 1976 to 2006 of $450. However, what I need the query to return is donors who have gifts totalling between 15 and 460 only in 1991.
what do i need to change?
thanks!
My table (gift_history) looks like this:
Code:
donor_id number
gift_date datetime
gift_amount number
query looks like this:
Code:
select donor_id
from gift_history
where donor_id= 3890 And gift_date between '01/01/1991' and '01/01/1992'
group by donor_id having sum(gift_amount) between 15 and 460
which returns 1 result, 3890
now donor 3890 does in fact have otal gifts from 1976 to 2006 of $450. However, what I need the query to return is donors who have gifts totalling between 15 and 460 only in 1991.
what do i need to change?
thanks!