数据库查询问题:列出各个部门中工资高于本部门的平均工资的员工数和部门号,并按部门号排序

一、先建立要用到的例子表,并在表里面插入记录,在sqlserver中作测试  Sql代码   create table employee(   id int  identity(1,1) primary key ,   name varchar(50),   salary bigint,   deptid int);      insert into employee values('zs',10
相关文章
相关标签/搜索