Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a new database with the name Lab08Exercise. Use Lab08Exercise to accomplish the below tasks. Create a table Faculty based on the following chart:
Create a new database with the name Lab08Exercise. Use Lab08Exercise to accomplish the below tasks. Create a table Faculty based on the following chart: Data type Constraints INT (6) Primary Key Last Name Varchar(15) First Name Varchar(15) Dept Char(3) Column Faculty_id Not NULL Dept Code Dept Name Not NULL Create a table Dept based on the following chart: Column Data type Char (3) Varchar(20) Constraints Primary Key Not NULL Add a new column Location to Dept table which has data type Char(7). Add a new FOREIGN KEY constraint to column Dept on table Faculty that refers to the column Dept Code on table Dept. Add ON DELETE CASCADE option. Increase Last Name column to 25 characters long Remove the column Location (the one added in Task #3 above) from Dept. Create a table course based on the following chart: Column Data type Constraints course Code Char (3) Primary Key course Name Varchar(20) Not NULL ). Add a new column Instructor_ID to course which has data type corresponding to Faculty. Faculty_ID . Add a new FOREIGN KEY constraint (named faculty_course_fk) to course Instructor_ID that refers to the column Faculty. Faculty_ID. Create a new database with the name Lab08Exercise. Use Lab08Exercise to accomplish the below tasks. Create a table Faculty based on the following chart: Data type Constraints INT (6) Primary Key Last Name Varchar(15) First Name Varchar(15) Dept Char(3) Column Faculty_id Not NULL Dept Code Dept Name Not NULL Create a table Dept based on the following chart: Column Data type Char (3) Varchar(20) Constraints Primary Key Not NULL Add a new column Location to Dept table which has data type Char(7). Add a new FOREIGN KEY constraint to column Dept on table Faculty that refers to the column Dept Code on table Dept. Add ON DELETE CASCADE option. Increase Last Name column to 25 characters long Remove the column Location (the one added in Task #3 above) from Dept. Create a table course based on the following chart: Column Data type Constraints course Code Char (3) Primary Key course Name Varchar(20) Not NULL ). Add a new column Instructor_ID to course which has data type corresponding to Faculty. Faculty_ID . Add a new FOREIGN KEY constraint (named faculty_course_fk) to course Instructor_ID that refers to the column Faculty. Faculty_ID.
Step by Step Solution
★★★★★
3.42 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
It appears that youre trying to create tables for a database with specific constraints and relations...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