dim b As New SQLGroupTableBuilder("统计表1","jlj") b.Groups.AddDef("批次") b.Totals.AddDef("合格蛋数") b.Totals.AddDef("淘汰") b.Exprs.Adddef("产蛋率","[合格蛋数]/[存栏母鸡]",AggregateEnum.Average) b.Exprs.Adddef("入舍鸡产蛋率","[合格蛋数]/[进栏母鸡]",AggregateEnum.Average) b.build Tables("窗口1_Table1").DataSource = DataTables("统计表1")