Question: Home Week 3 : Active Reading zy Section 3 . 2 - BIS 2 4 5 : Database ( 2 0 6 , 8 2
Home
Week : Active Reading
zy Section BIS : Database
unread brist
learn.zybooks.comzybookDatabaseEssentialsforBusinesswithLabchaptersection
My library BIS : Database Essentials for Business with Lab home Foreign keys
PARTICIPATION
ACTIVITY
: Add primary and foreign key constraints.
The given SQL creates an Album table and a Song table. The SHOW COLUMNS queries show informatiol Song table columns.
Modify the two CREATE TABLE statements:
Add a primary key constraint to the Album table's ID column.
Add a primary key constraint to the Song table's ID column.
Add a foreign key constraint to the Song table so the AlbumiD column refers to the Album table's ID
Add a primary key
CREATE TABLE Album
ID INT,
Title VARCHAR
ReleaseYear INT
;
Add primary and foreign keys
CREATE TABLE Song
ID INT,
Title VARCHAR
Artist VARCHAR
AlbumID INT
;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
