摘要:select * from STUDENT; select * from STU_COURSE; select * from SCLASS; select * from MAJOR; select * from COURSE; 1.查询所有学员姓名,年龄(显示整数,如24.75岁显示为24岁),所学
阅读全文
摘要:课堂练习 1.用相关子查询实现:查询每个部门工资最低的两个员工编号、姓名、工资。 select empno,enamel,sal from emp a where 2>(select count(1) from emp b where a.deptno=b.deptno and a.sal>b.sa
阅读全文
摘要:课堂练习1 1.查询和simth一个部门的其他员工姓名。 select ename from emp where deptno=(select deptno from emp where ename='SMITH')and ename !='SMITH'; 2.查询存在员工的部门的工作地点。 sel
阅读全文
摘要:oracle 第四章 练习1 1.查询员工姓名中中包含大写或小写字母A的员工姓名。 select ename from emp where ename like '%A%' or ename like '%a%'; 2.查询部门编号为10或20,入职日期在81年5月1日之后,并且姓名中包含大写字母A
阅读全文
摘要:oracle 第三章 练习1 1.查询职位为SALESMAN的员工编号、职位、入职日期。 select empno,job,hiredate from emp where job = 'SALESMAN'; 2.查询1985年12月31日之前入职的员工姓名及入职日期。 select ename,hi
阅读全文
摘要:oracle 第二章 练习1 1.使用两种方式查询所有员工信息 select * from emp select EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO from emp 2.查询员工编号、员工姓名、员工职位、员工月 薪、工作部门编号。 select
阅读全文