Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Feedback? PARTICIPATION ACTIVITY The given SQL creates an Album table and a Song table. The SHOW COLUMNS queries show information about the Album and Song
Feedback?
PARTICIPATION ACTIVITY
The given SQL creates an Album table and a Song table. The SHOW COLUMNS queries show information about the Album and Song table columns.
Modify the two CREATETABLE statements
Add a primary key constraint to the Album tables 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 tables ID column.
Add a primary key.
CREATE TABLE Album?
II IVI,
Title VARCHAR
Releaseyear INT
Add primary and foreign keys
CREATE TABLE Song
II INT,
Title VARCHAR
Artist VARCHAR
AIbumID INT
is
SHON COLUMW
From Album;
SHOW COLUHINS
FROM Song;
Reset code
Vierv solution
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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