Answered step by step
Verified Expert Solution
Link Copied!

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 

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

Distinguish between operating income and net income.

Answered: 1 week ago

Question

=+c) Why did the researcher remove the Rent Index from the model?

Answered: 1 week ago

Question

Why is system availability an advantage in a distributed database?

Answered: 1 week ago