Question: Database Schema ( 5 0 pts ) You are given the following description of the entities that need to be stored in the database. Your
Database Schema pts
You are given the following description of the entities that need to be stored in the database. Your task is to design a database schema set of tables to store these entities.
Your schema must be minimally redundant in storing data. In other words, you should build a set of tables that minimize the repetition of data, by using foreign keys credit will be in accordance with this.
Artist: An individual or a groupband uniquely identified by their name. An artist might release albums, as well as songs that are not in albums singles artist the same artist records a song exactly once but the title may be shared by multiple artists ie covers need not all be in the same genre. name and artist name is unique.
Playlist: A user can make any number of playlists of songs. Note: A playlist may not include an entire album, only individual songs. Each song is either from some album, or a single that's not in any album.
Every playlist has a title, and a datetime when it was created. A playlist may be modified any number of times after creation by adding or removing songs, but the title and datetime will not change.
The title of a playlist is not unique since different users might create playlists with the same title. However, a user's playlists will have unique titles.
Rating: A user could rate an album, a song even if it's in an album or a playlist. A rating is limited to or numeric and is made on a specific date. reduce redundancy.
Your database structure should have the most appropriate data type and size for each column in each table. of foreseeable values.
Make sure you define and specify all primary keys, foreign keys, unique valued columns or unique valued combination of columns, and nullnonnull properties for columns.
In the document you will submit, type in the create table statement for each of the tables you create in the database. If you don't have the full create statement for a table, you will not get credit for it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
