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 need a place to store our bands and albums. You are creating a console app that stores our information in a database.
- Practice creating an Entity Relationship Diagram
- Practice working with SQL
Create the ERD (Entity Relationship Diagram) and resulting tables that allow a user to store and manage the company's bands, albums, and songs.
Although in reality an album could be done by more than one band, our system will just have an album involving one band. That is, an album belongs to one band.
There are many software tools for generating ERD diagrams. If you'd like to try these tools we suggest tying these:
Create an ERD for these entities:
Songs. They should have the following properties, use your best judgment for types.
- Track Number
Draw the relationship lines between these entities. Remember that SQL JOIN gives us the ability to traverse from one table to another through a table in-between. (HINT)
Create SQL statements that:
- Add a new band
- View all the bands
- Add an album for a band
- Add a song to an album
- Let a band go (update isSigned to false)
- Resign a band (update isSigned to true)
- Given a band name, view all their albums
- View all albums (and their associated songs) ordered by ReleaseDate
- View all bands that are signed
- View all bands that are not signed