我有一个查询
SELECT sum(cash) from bought_cash WHERE uid=1 AND source NOT IN ('a', 'b')
结果为140
和
SELECT sum(cash) from bought_cash WHERE uid=1 AND source IN ('a', 'b')
给NULL
和
SELECT sum(cash) from bought_cash WHERE uid=1
结果为240
和
SELECT sum(cash) from bought_cash WHERE uid=1 and source is null
结果为100
如何编写查询,以便第一个查询240
通过包含空值来给出结果。