美文网首页
统计每个老师的总薪酬

统计每个老师的总薪酬

作者: czm123 | 来源:发表于2019-04-01 00:02 被阅读0次
            private void button6_Click(object sender, EventArgs e)
            {
                string s = "select teachers.tname as 姓名,sum(remunerations.wage*courses.ctime) as 总薪酬 ";
                s += "from courses,teachers,remunerations ";
                s += "where courses.tnum=teachers.tnum and teachers.zcnum=remunerations.zcnum ";
                s += "group by teachers.tname order by sum(remunerations.wage*courses.ctime) desc";
                loadLV(listView2, s);
            }

    相关文章

      网友评论

          本文标题:统计每个老师的总薪酬

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