2. 아래의 SQL 구문을 완성 하시오.
select max(sal) as Maximum, min(sal) as Minimum, sum(sal) as Sum, avg(sal) as Average from emp;
select ename, hiredate from emp where hiredate > (select hiredate from emp where ename = 'SMITH');
select emp.ename, emp.job, dept.dname, emp.sal, salgrade.grade from emp, dept, salgrade where emp.deptno = dept.deptno and emp.sal between salgrade.losal and salgrade.hisal;
select emp.ename, emp.job, emp.deptno, dept.dname from emp, dept where emp.deptno = dept.deptno and dept.loc = 'DALLAS';
select emp.ename, dept.dname from emp, dept where emp.deptno = dept.deptno and emp.ename like '%A%';
select emp.ename, dept.dname, dept.loc from emp, dept where emp.deptno = dept.deptno and emp.comm is not null;
select distinct emp.job, dept.loc from emp, dept where emp.deptno = dept.deptno and emp.deptno = 30;
여기 저기 열심히 하는 흔적이 보입니다. 많은글 잘 보고 갑니다. ^^