select empno,ename,ename,job,sal from emp;
select distinct job from emp;
select empno,ename,(sal*15+(200+100)) income from emp;
select empno||ename from emp;
select * from emp where sal>1500; select * from emp where ename ='SMITH' select empno,ename,job from emp where job<>'SALESMAN';
select * from emp where sal>1500 and sal<3000; select * from emp where sal>2000 or job='CLERK'; select * from emp where not sal >=2000;
select * from emp where sal between 1500 and 2000; select * from emp where hiredate between '01-1月-1981'and'31-12月-1981';
select * from emp where comm is not null;
select * from emp where empno in (7369,7566,7788,9999);
select * from emp where ename like 'A%'
select * from emp where ename like '_A%';
select * from emp where ename like '%A%';
select * from emp order by sal desc;
select empno ,ename,sal*12 income from emp order by income;
select * from emp where deptno=30;
select ename,empno,deptno from emp where job='CLERK';
select * from emp where comm>sal*0.6 ;
select * from emp where (deptno=10 and job='MANAGER' )or(deptno=20 and job='CLERK' );
select * from emp where (deptno=10 and job='MANAGER')or(deptno=20 and job='CLERK')or(job! ='MANAGER'and job!='CLERK' and sal>=2000);
select *
from emp
where (deptno=10 and job='MANAGER')or(deptno=20 and job='CLERK')or(job
not in ('CLERK','MANAGER') and sal>=2000);
select distinct job from emp where comm is not null;
select distinct job from emp where comm is null or comm<100;
select * from emp where ename not like '%R%';
select * from emp where ename like '%A%' order by sal desc,hiredate asc,job;
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有