加好友 发短信
等级:小狐
帖子:366
积分:3522
威望:0
精华:0
注册:2016/5/25 21:31:00
|
统计考勤时间范围怎么写 Post By:2019/7/2 15:57:00 [显示全部帖子]
事例中 Dim b As New SQLGroupTableBuilder("统计表1","学生成绩") b.Groups.AddDef("科目") b.Totals.AddDef("分数",AggregateEnum.Max,"最高分") b.Totals.AddDef("分数",AggregateEnum.Min,"最低分") b.Totals.AddDef("分数",AggregateEnum.Average,"平均分") b.Totals.AddExp("分布_60以下","iif(分数 < 60,1,0)") b.Totals.AddExp("分布_60-70","iif(分数 >= 60 And 分数 < 70,1,0)") b.Totals.AddExp("分布_70-80","iif(分数 >= 70 And 分数 < 80,1,0)") b.Totals.AddExp("分布_80-90","iif(分数 >= 80 And 分数 < 90,1,0)") b.Totals.AddExp("分布_90-100","iif(分数 >= 90 And 分数 < 100,1,0)") b.Totals.AddExp("分布_100-110","iif(分数 >= 100 And 分数 < 110,1,0)") b.Totals.AddExp("分布_110-120","iif(分数 >= 110 And 分数 < 120,1,0)") b.Totals.AddExp("分布_120-130","iif(分数 >= 120 And 分数 < 130,1,0)") b.Totals.AddExp("分布_130-140","iif(分数 >= 130 And 分数 < 140,1,0)") b.Totals.AddExp("分布_140以上","iif(分数 >= 140,1,0)") b.build() MainTable = Tables("统计表1")
如果分数是时期时间格式要怎么写iif(时间 < 60,1,0)代码
比如,我要分出时间在7:00至8:00范围内的
[此贴子已经被作者于2019/7/2 16:04:13编辑过]
|
|