从提示页面传递时间参数(start和end),在报表页面接参数语句如:
select service_type, sum(suc),sum(suc)/sum(sum) rate,
from V_BRD_MOBILE_SERVICE_NEW
where daily between to_date(?strt?) and to_date(?end?)
group by service_type
可是老是报错。这个也在过滤里面接不了,因为没有把日期查询出来,想Where下,老报错
太强了 可以了 不报错了
select service_type, sum(suc),sum(suc)/sum(sum) rate
from V_BRD_MOBILE_SERVICE_NEW
where daily
between to_date(#prompt('date','start')# ,'yyyy-mm-dd')
and
to_date(#prompt('date','end')# ,'yyyy-mm-dd')
group by service_type