#2
hj_eileen2016-03-08 11:28
|
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按钮不会写,总执行不过去,请大侠仗义出手指点一二,在下在此谢过了!