piercebhunt / assignments

assignments for Suncoast Developers Guild
0 stars 0 forks source link

03 - 02 - Rhythm's gonna get you - ERD #10

Closed piercebhunt closed 4 years ago

piercebhunt commented 4 years ago

Rhythm's gonna get you - ERD

For this project, we will model and create a database. We are starting a record label company, and we a place to store our bands, albums, and eventually songs. You are creating a console app that stores our information in a database.

Objectives

Requirements

Create the ERD (Entity Relationship Diagram) and resulting tables that allows a user to store and manage the company's bands, albums, and (eventually) songs.

How to turn in this assignment.

  1. If you draw your ERD on paper, attach a photo. If you draw your ERD in a software tool, attach a screenshot of the image.
  2. Paste all the SQL you wrote to create tables, insert rows, and try out SELECT/JOIN statements as a comment to this assignment.

Explorer Mode

ALTERNATIVES

piercebhunt commented 4 years ago

//Add a new band INSERT INTO “Band” (“Id”, “Name”, “CountryOfOrigin”, “NumberOfMembers”, “Website”, “Style”, “IsSigned”, “ContactName”, “ContactPhoneNumber”) VALUES (1, ‘Linkin Park’, ‘USA’, 3, ‘linkinpark.com’, ‘Rock’, ‘Yes’, “IDK’, ‘8134556789’);

// View all the bands SELECT * FROM “Band”;

//Add an album for a band

//Let a band go UPDATE “Band” SET “isSigned” = false;

//Resign a band UPDATE “Band” SET “isSigned” = true;

//Given a band name, view all their albums

//View all albums ordered by ReleaseDate SELECT * FROM “Albums” ORDER BY “ReleaseDate” ;

//View all bands that are signed SELECT * FROM “Band” WHERE “isSigned” = true;

//View all bands that are not signed SELECT * FROM “Band” WHERE “isSigned” = false;

Screen Shot 2020-06-12 at 5 33 51 AM
gstark commented 4 years ago

Looks good!

piercebhunt commented 4 years ago

Your homework 03 - 02 - Rhythm's gonna get you - ERD was marked: Meets Expectations

Well done!

“Well done!”