TO_DATE()函數

  
4月份已確認了合同的代理費收入
輸出字段:
結算客戶編號/結算客戶名稱/(合同的)訂單幣種/訂單金額/代理費
 
Eapt_ftcontractheader 合同表
Eapt_customer 客戶表
 
 
 
select c.customercode,c.customernamecn,fh.pocurrency,fh.totalpoamount,fh5.paymentofagent
 
from eapt_ftcontractheader fh,eapt_ftcontractheader5 fh5,eapt_customer c
where fh.paymentcustomer = c.customerno
      and fh.ftcontractno = fh5.ftcontractno
      and fh.ftcstatus<>'NEW'
     -- and fh.totalpoamount>0
      and fh.customdate >= TO_DATE('2007-4-1','YYYY-MM-DD')
 and fh.customdate <= TO_DATE('2007-4-30','YYYY-MM-DD')
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章