Subject | Re: Performance troubles |
---|---|
Author | Ali Gökçen |
Post date | 2005-10-27T11:29:39Z |
select contactno from contacts c
where state in(1,2)
AND
exists(select sum(giftvalue)
from gifts
where contactno = c.contactno
and someotherfield = 'somevalue'
having sum(giftvalue)>=100
)
My "AND" eaten by some by some brain bugs.
where state in(1,2)
AND
exists(select sum(giftvalue)
from gifts
where contactno = c.contactno
and someotherfield = 'somevalue'
having sum(giftvalue)>=100
)
My "AND" eaten by some by some brain bugs.