-
haocx 数据老手Lv5
发表于2019-10-24 22:04
悬赏1
已解决
27个回答
select row_.*,rownum from ( select MAX(a.COST_CLASSES) as B3,sum(a.COST_AMT) as C3,MAX(a.COST_REMARK) as D3,a.DEPT_NAME as A3
from PAYROLL_COST a
where (((a.DEPT_NO is null or a.DEPT_NO='')) AND (a.BBQ like '2019%'))
group by a.DEPT_NAME )row_ where rownum <= 1000 ,这是生成的sql,部门的函数没参与进来
看一下能不能帮到你哦~
http://bbs.esensoft.com/thread-129159-1-1.html
一笑伊人 发表于 2019-10-25 17:05
看一下能不能帮到你哦~
http://bbs.esensoft.com/thread-129159-1-1.html
额,不能把,我这个是内置的函数,我取到了,点计算没参与计算