Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the Entity Relationship Diagram (ERD) model provided below, write the CREATE statements required to create the three tables (include all PK and FK relationships

Using the Entity Relationship Diagram (ERD) model provided below, write the CREATE statements required to create the three tables (include all PK and FK relationships in your CREATE statements).

image text in transcribed

CREATE STATEMENTS: (10 points)

Below you will find five rows of data that is located in the Album table for Hallux Productions. Using your knowledge of INSERT statements in SQL, provide the SQL required to insert these rows of data into the Album table.

image text in transcribed

You should have a total of 5 insert statements upon completion. Be sure to end each of your statements with a semi-colon and watch datatypes (string versus integer).

INSERT STATEMENTS: (10 points)

SONG BAND ?BandID: INTEGER NOT NULL SongID: INTEGER NOT NULL BandName: VARCHARI20) NOT NULL BandStatusCode: VARCHARI2]NOT NULL FormationDate: DATE NULL AlbumlD: INTEGER NOT NULL (FK) SongName: VARCHAR(20) NOT NULL Sequence: INTEGER NOT NULL ALBUM ?AlbumID: INTEGER NOT NULL BandlD: INTEGER NOT NULL (FK) AlbumName: VARCHAR(40) NOT NULL ReleaseDate: DATE NULL ProductionCode: DECIMAL(7,2) NULL SONG BAND ?BandID: INTEGER NOT NULL SongID: INTEGER NOT NULL BandName: VARCHARI20) NOT NULL BandStatusCode: VARCHARI2]NOT NULL FormationDate: DATE NULL AlbumlD: INTEGER NOT NULL (FK) SongName: VARCHAR(20) NOT NULL Sequence: INTEGER NOT NULL ALBUM ?AlbumID: INTEGER NOT NULL BandlD: INTEGER NOT NULL (FK) AlbumName: VARCHAR(40) NOT NULL ReleaseDate: DATE NULL ProductionCode: DECIMAL(7,2) NULL

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago