MySQL|(单表查询操作)emp表 员工信息表练习
问题:利用emp表中的数据,完成如下查询需求:
(1)查询20号部门的所有员工信息。
select * from emp where deptno=20;
(2)查询津贴(comm)高于月薪(sal)的员工信息。
select * from emp where comm>sal;
(3)查询津贴高于月薪的20%的员工信息。
select * from emp where comm>sal*0.2;
(4)查询10号部门中职位为Manager和20号部门中职位为Clerk的员工的信息。
se
原创
2020-11-25 20:54:01 ·
10054 阅读 ·
0 评论