标签:
1,显示每个雇员的年工资
select sal*12 年工资 from emp;
2,显示每个雇员的年收入
select empno,ename,(sal+nvl(comm,0))*12 年收入 from emp;
3,显示工资高于3000的员工
select empno,ename,sal from emp where sal>3000;
4,如何查找1982.1.1后入职的员工
select empno,ename,sal,HIREDATE from emp where HIREDATE>‘1-1月-1982‘;
5,如何显示工资在2000到2500的员工情况
select empno,ename,sal,HIREDATE from emp where sal between 2000 and 2500;
6,如何显示首字符为S的员工姓名和工资
select empno,ename,sal,HIREDATE from emp where ename like ‘S%‘;
7,如何显示第三个字符为大写O的所有员工的姓名和工资
select empno,ename,sal,HIREDATE from emp where ename like ‘__O%‘;
标签:
原文地址:http://www.cnblogs.com/ztyy04126/p/4877967.html