Answered step by step
Verified Expert Solution
Link Copied!

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
1 Add a primary key constraint to the Album tables 10 column
2 Add a primary key constraint to the Song table's ID column
3. Add a foreign key constraint to the Song table so the AlbumID column refers to the Album tables ID column.
1... Add a primary key.
2 CREATE TABLE Album?
II) IVI,
Title VARCHAR (68),
Releaseyear INT
%
.. Add primary and foreign keys
CREATE TABLE Song (
II) INT,
Title VARCHAR (6e),
Artist VARCHAR(68),
AIbumID INT
is
SHON COLUMW
From Album;
SHOW COLUHINS
FROM Song;
Reset code
Vierv solution
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

Students also viewed these Databases questions