-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathddl-stage.sql
94 lines (85 loc) · 2.62 KB
/
ddl-stage.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
--------------------------------------------------------
-- Datei erstellt -Montag-November-30-2020
--------------------------------------------------------
--------------------------------------------------------
-- DDL for Table HUB_DEPT
--------------------------------------------------------
CREATE TABLE "STG_HUB_DEPT"
( "LOAD_DATE" DATE,
"DEPTNO_HASHKEY" RAW(16),
"RECORDSOURCE" VARCHAR2(20),
"DEPTNO_BK" NUMBER(2,0)
) ;
--------------------------------------------------------
-- DDL for Table HUB_EMP
--------------------------------------------------------
CREATE TABLE "STG_HUB_EMP"
( "LOAD_DATE" DATE,
"EMPNO_HASHKEY" RAW(16),
"RECORDSOURCE" VARCHAR2(20),
"EMPNO_BK" NUMBER(4,0)
) ;
--------------------------------------------------------
-- DDL for Table SAT_DEPT
--------------------------------------------------------
CREATE TABLE "STG_SAT_DEPT"
( "DEPTNO_HASHKEY" RAW(16),
"LOAD_DATE" DATE,
"RECORDSOURCE" VARCHAR2(20),
"HASHDIFF" RAW(16),
"DNAME" VARCHAR2(14),
"LOC" VARCHAR2(13)
) ;
--------------------------------------------------------
-- DDL for Table SAT_EMP20
--------------------------------------------------------
CREATE TABLE "STG_SAT_EMP20"
( "EMPNO_HASHKEY" RAW(16),
"LOAD_DATE" DATE,
"RECORDSOURCE" VARCHAR2(20),
"HASHDIFF" RAW(16),
"ENAME" VARCHAR2(10),
"HIREDATE" DATE
) ;
--------------------------------------------------------
-- DDL for Table SAT_EMP5
--------------------------------------------------------
CREATE TABLE "STG_SAT_EMP5"
( "EMPNO_HASHKEY" RAW(16),
"LOAD_DATE" DATE,
"RECORDSOURCE" VARCHAR2(20),
"HASHDIFF" RAW(16),
"JOB" VARCHAR2(9),
"SAL" NUMBER(7,2),
"COMM" NUMBER(7,2)
) ;
--------------------------------------------------------
-- DDL for Table LINK_MANAGER
--------------------------------------------------------
CREATE TABLE "STG_LINK_MANAGER"
( "LOAD_DATE" DATE,
"MANAGER_HASHKEY" RAW(16),
"RECORDSOURCE" VARCHAR2(20),
"EMPNO_HASHKEY" RAW(16),
"MGR_HASHKEY" RAW(16)
) ;
--------------------------------------------------------
-- DDL for Table LINK_WORKS
--------------------------------------------------------
CREATE TABLE "STG_LINK_WORKS"
( "LOAD_DATE" DATE,
"WORKS_HASHKEY" RAW(16),
"RECORDSOURCE" VARCHAR2(20),
"EMPNO_HASHKEY" RAW(16),
"DEPTNO_HASHKEY" RAW(16)
) ;
--------------------------------------------------------
-- DDL for Table STG_SAT_LINK_WORKS_EFF
--------------------------------------------------------
CREATE TABLE STG_SAT_LINK_WORKS_EFF(
"WORKS_HASHKEY" RAW(16),
"BEGIN_DATE" DATE,
"END_DATE" DATE,
"LOAD_DATE" DATE,
"RECORDSOURCE" VARCHAR2(20)
);