0% found this document useful (0 votes)
13 views

Table SQL Data

The document creates two tables, type1 and scd_type1, with type1 containing employee data including a primary key, number, name, job, salary, department number, start date and end date. scd_type1 is also created to contain similar employee attributes.

Uploaded by

kdtftfjggjyhg
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Table SQL Data

The document creates two tables, type1 and scd_type1, with type1 containing employee data including a primary key, number, name, job, salary, department number, start date and end date. scd_type1 is also created to contain similar employee attributes.

Uploaded by

kdtftfjggjyhg
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

create table type1(

empkey number(7) primary key,


empno number(4),
ename varchar2(15),
job varchar2(10),
sal number(9,2),
deptno number(3),
start_date DATE,
End_date DATE
);
create table scd_type1(
empkey number(7) primary key,
empno number(4),
ename varchar2(15),
job varchar2(10),
MGR varchar2(10),
HIREDATE DATE,
Comm number(7,2),
sal number(9,2),
deptno number(3)
);
SQL> create table scd_type1(
2 empkey number(7) primary key,
3 empno number(4),
4 ename varchar2(15),
5 job varchar2(10),
6 MGR varchar2(10),
7 HIREDATE DATE,
8 Comm number(7,2),
9 sal number(9,2),
10 deptno number(3)
11 );
Table created.

You might also like