1.아래의 SQL 문을 완성하시오.
drop table dept02;
create table dept02(
deptno number(2) not null primary key,
dname varchar2(14),
loc varchar2(13)
);
insert into dept02 values(20, 'RESEARCH', 'DALLAS');
drop table emp01;
create table emp01 as select * from emp;
update emp01 set deptno = 30;
drop table emp01;
create table emp01 as select * from emp;
update emp01 set sal = sal * 1.1;
drop table emp01;
create table emp01 as select * from emp;
update emp01 set hiredate = sysdate;
drop table emp01;
create table emp01 as select * from emp;
update emp01 set deptno = 40 where deptno = 10;
drop table emp01;
create table emp01 as select * from emp;
update emp01 set sal = sal * 1.1 where job = 'MANAGER';
drop table emp01;
create table emp01 as select * from emp;
update emp01 set hiredate = sysdate where substr(hiredate, 8, 2) = '87';
drop table emp01;
create table emp01 as select * from emp;
delete from emp01 where deptno = (select deptno from dept where dname = 'SALES');