Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What would be an SQL Script to add a new table to this Schema for Employee Background with a one to one relationship with the
What would be an SQL Script to add a new table to this Schema for Employee Background with a one to one relationship with the employee table. Add whichever fields are needed to this table, but be sure to include a primary key and if needed a foreign key. You do not need to enter data into this table. Please include one field named with your initials in it.
regions REGION_ID REGION NAME departments DEPARTMENT_ID DEPART NAME MANAGER ID LOCATION ID job_history EMPLO E ID START_DATE END DATE JOB ID DEPARTMENT_ID NUMBER VARCHAR2(25) NUMBER VARCHAR2(30) NUMBER NUMBER NUMBER DATE DATE VARCHAR2(10) NUMBER 00 countries COUNTRY_ID CHAR(2) COUNTRY_NAME VARCHAR2(40) REGION ID NUMBER o employees EMPLOYEE ID FIRST NAME LAST NAME EMAIL PHONE NUMBER HIRE DATE JOB_ID SALARY COMMISSION_PCT MANAGER ID DEPARTMENT_ID NUMBER VARCHAR2(20) VARCHAR2(25) VARCHAR2(25) VARCHAR2(20) DATE VARCHAR2(10) NUMBER NUMBER NUMBER NUMBER 00 locations LOCATION ID STREET ADDRESS POSTAL CODE CITY STATE PROVINCE COUNTRY_ID jobs NUMBER VARCHAR2(25) VARCHAR2(12) VARCHAR2(30) VARCHAR2(12) CHAR(2) JOB ID JOB TITLE MIN_SALARY NUMBER MAX_SALARY NUMBER VARCHAR2(10) VARCHAR2(35)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
CREATE TABLE Employee Background Employee BackgroundID int PRIMARY KEY AUTO INCREMENT EmployeeID int FOREIGN KEY REFERENCES Employees EmployeeID TSInitials VARCHAR 20 NOT NULL BackgroundCheckDate DATE ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started