FINAL.LOCATONS FINAL.COUNTRIES FINAL.REGIONS P LOCATION_ID STREET ADORESS * CITY NUMBER * COUNTRY_ID COUNTRY_NAME REGION_ID CREATED_BY CREATED_DATE MODIFIED_BY MODIFIED_DATE VARCHAR2 (40 BYTE) VARCHAR2 00 BYTE) CHAR 2 BYTE) VARCHAR2 (40 BYTE) NUMBER REGION_ID NUMBER REGION_NAME CREATED_BY CREATED_DATE MODIFIED_BY MODIFIED_DATE VARCHAR2 (25 BYTE) STATE_PROVINCE VARCHAR2 25 BYTE) VARCHAR2 00 BYTE) DATE VARCHAR2 (30 BYTE) POSTAL_CODE COUNTRY_ID CREATED_BY CREATED_DATE MODIFIED_BY MODIFIED DATE VARCHAR2 20 BYTE) DATE CHAR 2 BYTE) VARCHAR2 (30 BYTE) VARCHAR2 (30 BYTE) DATE VARCHAR2 (30 BYTE) DATE DATE REGION_PK (REGION_ID) VARCHAR2 (30 BYTE) > COUNTRIES_PK (COUNTRY_ID) DATE O REGION_PK (REGION_ID) COUNTRIES_FK1 (REGION_ID) > LOCATIONS_PK (LOCATION_ID) LOCATIONS FK1 (COUNTRY_ID) O LOCATIONS PK (LOCATION_ID) O COUNTRIES_PK (COUNTRY_ID) FINAL EMPLOYEES FINAL EMP DETAILS VIEW FINAL.DEPARTMENTS P EMPLOYEE_ID NUMBER C1 ROWID FIRST NAME VARCHAR2 20 BYTE) PDEPARTMENT_ID * DEPARTMENT NAME NUMBER (4) C2 ROWID LAST_NAME VARCHAR2 (25 BYTE) VARCHAR2 25 BYTE) VARCHAR2 (30 BYTE) ca ROWID EMAIL MANAGER_ID NUMBER C4 ROWID PHONE NUMBER VARCHAR2 20 BYTE) VARCHAR2 (30 BYTE) LOCATION_ID NUMBER VARCHAR2 (30 BYTE) ROWID CREATED_BY CREATED_BY ce ROWID CREATED DATE DATE CREATED_DATE MODIFIED_BY MODIFIED_DATE C7 COUNTRY NAME * DEPARTMENT I0 DEPARTMENT_NAME * EMPLOYEE_ID FIRST NAME LAST NAME DATE ROWID VARCHAR2 30 BYTE) MODIFIED_BY MODIFIED DATE VARCHAR2 30 BYTE) VARCHAR2 (40 BYTE) DATE DATE NUMBER (4) VARCHAR2 00 BYTE) > DEPARTMENTS_PK (DEPARTMENT_ID) EMPLOYEES_PK (EMPLOYEE_ID) NUMBER O EMPLOYEES_PK (EMPLOYEE_ID) DEPARTMENTS_FK1 (LOCATION_ID) VARCHAR2 20 BYTE) VARCHAR2 25 BYTE) O DEPARTMENTS_PK (DEPARTMENT_ID) COMMISSION_PCT NUMBER (2.2) * JOB_TITLE VARCHAR2 05 BYTE) NUMBER aisor. MANAGER_ID NUMBER NUMBER 9.2) VARCHAR2 (30 BYTE) SALARY * CITY COUNTRY_ID * LOCATION_ID FINAL. JOB_HISTORY PF EMPLOYEE_ID P START DATE END DATE F JOB_ID DEPARTMENT ID SALARY MANAGER_ID CREATED_BY CREATED_DATE MODIFIED_BY MODIFIED DATE NUMBER CHAR 2 BYTE) NUMBER VARCHAR2 25 BYTE) DATE DATE STATE_PROVINCE NUMBER FINAL.JOBS REGION_NAME VARCHAR2 (25 BYTE) NUMBER (4) JOB_ID arsor * JOB_TITLE MIN_SALARY MAX_SALARY COMMISSION_PCT CREATED_BY CREATED_DATE NUMBER NUMBER (9.2) VARCHAR2 (35 BYTE) NUMBER NUMBER (0) VARCHAR2 30 BYTE) NUMBER (0) DATE NUMBER 22) VARCHAR2 (30 BYTE) VARCHAR2 (30 BYTE) DATE DATE >JOB_HISTORY_PK (EMPLOYEE_ID. START_DATE) JOB_HISTORY_FK1 (DEPARTMENT_ID) SJOB_HISTORY FK2 (EMPLOVEE_ID) SJOB_HISTORY F3 (MANAGER_ID) JOB_HISTORY FK4 (JOB_ID) O JOB_HISTORY PK (EMPLOYEE_ID, START_DATE) VARCHAR2 (30 BYTE) DATE MODIFIED_BY MODIFIED_DATE JOBS_PK (JOB_IO) • JOBS_PKJO8_10) Build the schema and one view, Build a sequence for each of these tables, sequence is valued using an insert trigger

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
SQL
FINAL.LOCATIONS
FINAL.COUNTRIES
P LOCATION_ID
NUMBER
VARCHAR2 (40 BYTE)
FINAL.REGIONS
P. COUNTRY_ID
COUNTRY_NAME
REGION_ID
CREATED_BY
CREATED DATE
MODIFIED_BY
MODIFIED_DATE
CHAR (2 BYTE)
VARCHAR2 (40 BYTE)
* REGION_ID
REGION_NAME
CREATED_BY
STREET ADDRESS
NUMBER
* CITY
VARCHAR2 (30 BYTE)
VARCHAR2 (25 BYTE)
NUMBER
VARCHAR2 (25 BYTE)
VARCHAR2 (20 BYTE)
CHAR (2 BYTE)
VARCHAR2 (30 BYTE)
STATE_PROVINCE
VARCHAR2 (30 BYTE)
VARCHAR2 (30 BYTE)
POSTAL_CODE
COUNTRY_ID
CREATED_BY
CREATED DATE
DATE
DATE
MODIFIED_BY
MODIFIED_DATE
VARCHAR2 (30 BYTE)
VARCHAR2 (30 BYTE)
DATE
DATE
CREATED_DATE
MODIFIED_BY
MODIFIED_DATE
DATE
REGION_PK (REGION_ID)
O REGION_PK (REOION_ID)
VARCHAR2 (00 BYTE)
COUNTRIES_PK (COUNTRY_ID)
DATE
s COUNTRIES FK1 (REGION_ID)
LOCATIONS_PK(LOCATION_ID)
o COUNTRIES_PK (COUNTRY_ID)
LOCATIONS_FK1 (COUNTRY_ID)
• LOCATIONS_PK (LOCATION_ID)
FINAL.EMPLOYEES
FINAL. EMP DETAILS_VIEW
P'EMPLOYEE_ID
FIRST NAME
LAST_NAME
FINAL.DEPARTMENTS
NUMBER
C1
ROWID
VARCHAR2 (20 BYTE)
P' DEPARTMENT_ID
* DEPARTMENT_NAME
NUMBER (4)
C2
ROWID
VARCHAR2 (25 BYTE)
VARCHAR2 (30 BYTE)
NUMBER
c3
ROWID
EMAIL
VARCHAR2 (25 BYTE)
VARCHAR2 (20 BYTE)
VARCHAR2 (30 BYTE)
MANAGER_ID
C4
ROWID
PHONE NUMBER
F
LOCATION_ID
NUMBER
C5
ROWID
CREATED_BY
CREATED DATE
CREATED_BY
VARCHAR2 (30 BYTE)
ce
ROWID
DATE
CREATED DATE
MODIFIED_BY
MODIFIED_DATE
DATE
ROWID
VARCHAR2 (40 BYTE)
NUMBER (4)
C7
MODIFIED_BY
VARCHAR2 (30 BYTE)
DATE
VARCHAR2 (30 BYTE)
COUNTRY_NAME
* DEPARTMENT ID
* DEPARTMENT NAME
* EMPLOYEE_ID
FIRST_NAME
LAST_NAME
DATE
MODIFIED_DATE
P EMPLOYEES_PK (EMPLOYEE_ID)
O EMPLOYEES_PK (EMPLOYEE_ID)
VARCHAR2 (30 BYTE)
> DEPARTMENTS_PK (DEPARTMENT_ID)
NUMBER
DEPARTMENTS_FK1 (LOCATION_ID)
VARCHAR2 (20 BYTE)
O DEPARTMENTS PK (DEPARTMENT_ID)
VARCHAR2 (25 BYTE)
NUMBER (2,2)
VARCHAR2 (35 BYTE)
NUMBER
NUMBER
NUMBER (0,2)
COMMISSION_PCT
* JOB_TITLE
JOB_ID
MANAGER_ID
SALARY
FINAL. JOB HISTORY
* CITY
VARCHAR2 (30 BYTE)
CHAR (2 BYTE)
PF EMPLOYEE_ID
P START DATE
END DATE
F' JOB_ID
F
NUMBER
COUNTRY_ID
* LOCATION_ID
STATE_PROVINCE
REGION_NAME
DATE
NUMBER
DATE
VARCHAR2 (25 BYTE)
VARCHAR2 (26 BYTE)
NUMBER
FINAL.JOBS
DEPARTMENT_ID
NUMBER (4)
P JOB_ID
* JOB_TITLE
MIN_SALARY
MAX_SALARY
COMMISSION_PCT
CREATED BY
CREATED_DATE
MODIFIED_BY
MODIFIED_DATE
NUMBER
SALARY
NUMBER (0.2)
VARCHAR2 (35 BYTE)
F
MANAGER_ ID
CREATED_BY
CREATED DATE
MODIFIED_BY
MODIFIED_DATE
NUMBER
NUMBER (0)
VARCHAR2 (30 BYTE)
DATE
NUMBER (0)
NUMBER 22)
VARCHAR2 (30 BYTE)
DATE
VARCHAR2 (20 BYTE)
DATE
JOB_HISTORY_PK (EMPLOYEE_ID. START_DATE)
VARCHAR2 (30 BYTE)
DATE
JOB_HISTORY FKI (DEPARTMENT_ID)
SJOB_HISTORY_FK2 (EMPLOYEE_ID)
SJOB_HISTORY_FK3 (MANAGER_ID)
JOB_HISTORY_FK4 (JOB_ID)
lo JOB_HISTORY_PK (EMPLOYEE_ID, START DATE)
> JOBS_PK (JOB_ID)
O JOBS_PK (JOB_ID)
Build the schema and one view, Build a sequence
for each of these tables, sequence is valued using
an insert trigger
Transcribed Image Text:SQL FINAL.LOCATIONS FINAL.COUNTRIES P LOCATION_ID NUMBER VARCHAR2 (40 BYTE) FINAL.REGIONS P. COUNTRY_ID COUNTRY_NAME REGION_ID CREATED_BY CREATED DATE MODIFIED_BY MODIFIED_DATE CHAR (2 BYTE) VARCHAR2 (40 BYTE) * REGION_ID REGION_NAME CREATED_BY STREET ADDRESS NUMBER * CITY VARCHAR2 (30 BYTE) VARCHAR2 (25 BYTE) NUMBER VARCHAR2 (25 BYTE) VARCHAR2 (20 BYTE) CHAR (2 BYTE) VARCHAR2 (30 BYTE) STATE_PROVINCE VARCHAR2 (30 BYTE) VARCHAR2 (30 BYTE) POSTAL_CODE COUNTRY_ID CREATED_BY CREATED DATE DATE DATE MODIFIED_BY MODIFIED_DATE VARCHAR2 (30 BYTE) VARCHAR2 (30 BYTE) DATE DATE CREATED_DATE MODIFIED_BY MODIFIED_DATE DATE REGION_PK (REGION_ID) O REGION_PK (REOION_ID) VARCHAR2 (00 BYTE) COUNTRIES_PK (COUNTRY_ID) DATE s COUNTRIES FK1 (REGION_ID) LOCATIONS_PK(LOCATION_ID) o COUNTRIES_PK (COUNTRY_ID) LOCATIONS_FK1 (COUNTRY_ID) • LOCATIONS_PK (LOCATION_ID) FINAL.EMPLOYEES FINAL. EMP DETAILS_VIEW P'EMPLOYEE_ID FIRST NAME LAST_NAME FINAL.DEPARTMENTS NUMBER C1 ROWID VARCHAR2 (20 BYTE) P' DEPARTMENT_ID * DEPARTMENT_NAME NUMBER (4) C2 ROWID VARCHAR2 (25 BYTE) VARCHAR2 (30 BYTE) NUMBER c3 ROWID EMAIL VARCHAR2 (25 BYTE) VARCHAR2 (20 BYTE) VARCHAR2 (30 BYTE) MANAGER_ID C4 ROWID PHONE NUMBER F LOCATION_ID NUMBER C5 ROWID CREATED_BY CREATED DATE CREATED_BY VARCHAR2 (30 BYTE) ce ROWID DATE CREATED DATE MODIFIED_BY MODIFIED_DATE DATE ROWID VARCHAR2 (40 BYTE) NUMBER (4) C7 MODIFIED_BY VARCHAR2 (30 BYTE) DATE VARCHAR2 (30 BYTE) COUNTRY_NAME * DEPARTMENT ID * DEPARTMENT NAME * EMPLOYEE_ID FIRST_NAME LAST_NAME DATE MODIFIED_DATE P EMPLOYEES_PK (EMPLOYEE_ID) O EMPLOYEES_PK (EMPLOYEE_ID) VARCHAR2 (30 BYTE) > DEPARTMENTS_PK (DEPARTMENT_ID) NUMBER DEPARTMENTS_FK1 (LOCATION_ID) VARCHAR2 (20 BYTE) O DEPARTMENTS PK (DEPARTMENT_ID) VARCHAR2 (25 BYTE) NUMBER (2,2) VARCHAR2 (35 BYTE) NUMBER NUMBER NUMBER (0,2) COMMISSION_PCT * JOB_TITLE JOB_ID MANAGER_ID SALARY FINAL. JOB HISTORY * CITY VARCHAR2 (30 BYTE) CHAR (2 BYTE) PF EMPLOYEE_ID P START DATE END DATE F' JOB_ID F NUMBER COUNTRY_ID * LOCATION_ID STATE_PROVINCE REGION_NAME DATE NUMBER DATE VARCHAR2 (25 BYTE) VARCHAR2 (26 BYTE) NUMBER FINAL.JOBS DEPARTMENT_ID NUMBER (4) P JOB_ID * JOB_TITLE MIN_SALARY MAX_SALARY COMMISSION_PCT CREATED BY CREATED_DATE MODIFIED_BY MODIFIED_DATE NUMBER SALARY NUMBER (0.2) VARCHAR2 (35 BYTE) F MANAGER_ ID CREATED_BY CREATED DATE MODIFIED_BY MODIFIED_DATE NUMBER NUMBER (0) VARCHAR2 (30 BYTE) DATE NUMBER (0) NUMBER 22) VARCHAR2 (30 BYTE) DATE VARCHAR2 (20 BYTE) DATE JOB_HISTORY_PK (EMPLOYEE_ID. START_DATE) VARCHAR2 (30 BYTE) DATE JOB_HISTORY FKI (DEPARTMENT_ID) SJOB_HISTORY_FK2 (EMPLOYEE_ID) SJOB_HISTORY_FK3 (MANAGER_ID) JOB_HISTORY_FK4 (JOB_ID) lo JOB_HISTORY_PK (EMPLOYEE_ID, START DATE) > JOBS_PK (JOB_ID) O JOBS_PK (JOB_ID) Build the schema and one view, Build a sequence for each of these tables, sequence is valued using an insert trigger
Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY