1
select 
   sdate,
   SUM(case when CGrp!='TOWNSHIP' and cdcode=0 and SDate between '4/1/2013' and '4/1/2013' then BillAmt end) as bill,
   sum(case  when CGrp!='TOWNSHIP' and cdcode!=0 and SDate between '4/1/2013' and '4/1/2013' then BillAmt end) as Net
from Indent
where bill != null     
group by SDate

エラーメッセージは次の行を指していますbill != null

4

2 に答える 2

2

の正しい構文は次のようにsomething != NULLなります。something IS NOT NULL

于 2013-05-21T10:30:29.690 に答える