美文网首页
统计同时具有两个以上工作员工的总工资

统计同时具有两个以上工作员工的总工资

作者: czm123 | 来源:发表于2019-04-01 00:03 被阅读0次
            private void button5_Click(object sender, EventArgs e)
            {
                string s = "select workers.wnum as 员工号,workers.wname as 员工名,";
                s += "sum(relate.wage) as 总工资 from workers,relate ";
                s += "where workers.wnum=relate.wnum ";
                s += "and workers.wnum in (select wnum from relate group by wnum having count(cnum)>=2)";
                s += "group by workers.wnum,workers.wname";
                loadLV(listView2,s);
            }

    相关文章

      网友评论

          本文标题:统计同时具有两个以上工作员工的总工资

          本文链接:https://www.haomeiwen.com/subject/mjgpbqtx.html