Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共8 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:统计问题

1楼
liuruihua 发表于:2009/12/27 23:01:00
用户已锁定!
2楼
czy 发表于:2009/12/28 1:31:00
b.Totals.AddExp("出苗总数","[公雏]+[母雏]+[次苗]+[死残苗]")

没发现问题呀。
3楼
liuruihua 发表于:2009/12/28 8:10:00
用户已锁定!
4楼
liuruihua 发表于:2009/12/28 14:18:00
用户已锁定!
5楼
mr725 发表于:2009/12/28 14:21:00
b.Totals.AddExp("健雏率","iif(([公雏] is null,0,[公雏])+iff([母雏] is null,0,[母雏]))/iif(([公雏] is null,0,[公雏])+iff([母雏] is null,0,[母雏])+iif([次苗] is null,0,[次苗]+iif([死残苗] is null,0,[死残苗]))")

全角 半角?
6楼
liuruihua 发表于:2009/12/28 21:28:00
用户已锁定!
7楼
liuruihua 发表于:2009/12/28 22:50:00
用户已锁定!
8楼
czy 发表于:2009/12/29 0:14:00
Dim b As New SQLGroupTableBuilder("统计表1","fh")
b.Groups.AddDef("批次")
b.Groups.AddDef("日期",DateGroupEnum.month, "月")
b.Totals.AddDef("实孵数量")
b.Totals.AddDef("公雏")
b.Totals.AddDef("母雏")
b.Totals.AddDef("次苗")
b.Totals.AddDef("死残苗")
b.Totals.AddExp("出苗总数","iif([公雏] is null,0,[公雏])+iif([母雏] is null,0,[母雏])+iif([次苗] is null,0,[次苗])+iif([死残苗] is null,0,[死残苗])")
b.Totals.AddExp("健雏率", "iif([公雏] is null And [母雏] is null And [次苗] is null And [死残苗] is null,0,(iif([公雏] is null,0,[公雏])+iif([母雏] is null,0,[母雏]))/(iif([公雏] is null,0,[公雏])+iif([母雏] is null,0,[母雏])+iif([次苗] is null,0,[次苗])+iif([死残苗] is null,0,[死残苗])))",AggregateEnum.Average)
b.Decimals=3
b.Build
Tables("窗口1_Table1").DataSource = DataTables("统计表1")
共8 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.