Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: How do you find out who did not contribute to a particular fund raiser that we all just did?

$
0
0

Just guessing based on your query,  and assuming the above query works, just insert a "where" condition. I also removed the SUM function. Also, "AND otherpay.othpaymoiid IS NULL"  may not be needed.

 

SELECT  moiid, trim(concat(name.fname,' ' ,name.mname,' ',name.lname)) as Brother, name.moiid as Members_ID, otherpay.othpayamt, quadlt.ltfname as quad

 

FROM name 

LEFT JOIN OTHERPAY  ON name.moiid = otherpay.othpaymoiid

LEFT JOIN quadlt  ON name.quadlt = quadlt.ltid

WHERE  Otherpay.othpaytitle like '%food drive%'

AND otherpay.othpaymoiid IS NULL

AND name.type = 'BOI'

AND name.type <> 'jrboi'

AND name.city = 'SUFFOLK'

 

WHERE othpayamt=0

 

ORDER BY name.quadlt, brother


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>