免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3864 | 回复: 3
打印 上一主题 下一主题

费心帮忙看看compute sum label '合计' of [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-06 14:20 |只看该作者 |倒序浏览
ttitle center '5月厂商别单品销售前50名' col50 right'页号:' sql.pno skip 4-
left'厂编:' suppl_no col20 '名称:' name col80 '采购:' buyer_uid col100 '类型:' suppl_type col185 skip 2
column c0 noprint new_value suppl_no
column c1 noprint new_value name
column c2 noprint new_value buyer_uid
column c3 noprint new_value suppl_type
col c4 hea '排名' for 99
col c5 hea '货号' for 999999
col c6 hea '描述' for A34
col c7 hea '状态' for 9
col c8 hea 'DMS' for 999.99
col c9 hea '库存数量' for 999,999.99
col c10 hea '在线定量' for 999999
col c11 hea '月销售金额' for 999999,999.99
col c12 hea '月销量' for 999999
col c13 hea '毛利额' for 9999,999.99
col c14 hea '毛利率' for 99.99
break on c0  skip page
compute sum label '汇总' of c11 on c0
compute sum label '汇总' of c12 on c0
compute sum label '汇总' of c13 on c0
set pagesize 80
set linesize 180
set verify off
set feedback off
set termout off
spool monthsale.200705
select c.suppl_no c0,a.name c1,a.buyer_uid c2,a.suppl_type c3,c.no c4,c.art_no c5,b.descr c6,b.art_status c7,b.dms c8,
       b.stock c9,b.on_order c10,c.amount c11,c.qty c12,c.ml_amount c13,(c.ml_amount/c.amount)*100 c14
from [email=supplier@headof]supplier@headof[/email] a,article b,t1_tmp c
where c.suppl_no=a.suppl_no
and c.art_no=b.art_no
and c.amount>0
order by c.suppl_no,c.no,c.amount;
spool off;

不显示'汇总'这两个字,求和值能计算出来,但不用label也不显示sum,请各位大侠救命啊!!!
运行环境是unixware 7.1.3 ;oracle 7

[ 本帖最后由 albert_wn 于 2007-7-6 14:21 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-07-06 14:37 |只看该作者
不要 c0 noprint
noprint 就不显示lable 了

论坛徽章:
0
3 [报告]
发表于 2007-07-06 14:57 |只看该作者
谢谢啊!以后还请多多指教!!!再次表示感谢!

论坛徽章:
0
4 [报告]
发表于 2012-10-08 11:51 |只看该作者
本帖最后由 zgandyli 于 2012-10-08 11:52 编辑

break on c0  skip page
compute sum label '汇总' of c11 on c0
compute sum label '汇总' of c12 on c0
compute sum label '汇总' of c13 on c0
以上三句改为:
break on c0 on report
compute sum label  '合计' of c11 c12 c13 on c0 report
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP