3,497
社区成员
发帖
与我相关
我的任务
分享
---b.aae04 = m.aab01 建立联合索引
select m.aab01 ,m.aab03 ,m.aab04,num,price,total,
(case when m.aaa01=m.aab05 then aaa02 end) lb
from aab_file m,
(select suM(to_number(aae12)) num,max(aae15) price,suM(aae12*aae15) total from aae_file group by aae04) b
where b.aae04 = m.aab01