新手报到,datawindows时间段查询问题求解
需执行SQL语句:select xf_storecode as 店铺号,sum(xf_bonus) as 积分 from xf_bonusledger
where xf_txdate between to_date('2016-01-26','YYYY-MM-DD')
and to_date('2016-02-25','YYYY-MM-DD')
group by xf_storecode
order by xf_storecode
PB:
建表时数据库bonusledger按店铺号升序排序。
main open
oldsql = "select xf_storecode,xf_bonus from xf_bonusledger"
dw_1.settrans(sqlca)
dw_1.retrieve()
select按钮不会写,总执行不过去,请大侠仗义出手指点一二,在下在此谢过了!