查询的数据必须满足同时以下的条件:
fee_type <> crcfee
answer_type <> income
entrance_type <> PROJECT
使用一下SQL语句即可:(关键就在这个AND NOT
)
SELECT * FROM dbo.FundsTypesAnswers WHERE DeletedDate IS NULL
AND NOT (fee_type = 'crcfee' AND answer_type = 'income' AND entrance_type ='PROJECT')