要实现这样的功能
select '验收',sum(dj*sl),sum(sl),count(distinct wym)
from btoc_ysjhf,btoc_ysjhz
where zbrq>=:adtm_start and zbrq<=:adtm_end
and btoc_ysjhf.jhdh=btoc_ysjhz.jhdh
union
select '采购', sum(dj*sl),sum(sl),count(distinct wym)
from btoc_cgdf,btoc_cgdz
where zbrq>=:adtm_start and zbrq<=:adtm_end
and btoc_cgdf.cgdh=btoc_cgdz.cgdh;
上面的结果出来后是两行,要在第三行加上比例,有没有直接的办法,让第一行的结果集除以第二行的结果集显示在第三行里