•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 392,311 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,892 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 2208 | Replies: 6
![]() |
•
•
Join Date: May 2005
Posts: 18
Reputation:
Rep Power: 4
Solved Threads: 0
I want to create a database to store information about my music collection. I want to be able to query the database for each of the following attributes:
•a particular title (for example, Tapestry or Beethoven’s Fifth Symphony)
•artist (for example, Carole King or the Chicago Symphony Orchestra)
•format of the recording (for example, CD or tape)
•style of music (for example, rock or classical)
•year recorded
•year acquired as part of your collection
•recording company
•address of the recording company
Can you help me to design the tables that I need so that they are all in third normal form.I also want to create at least five sample data records for each table I create.
Can someone help me here please!.I'm novice when it comes to databases.
Eager Student
•a particular title (for example, Tapestry or Beethoven’s Fifth Symphony)
•artist (for example, Carole King or the Chicago Symphony Orchestra)
•format of the recording (for example, CD or tape)
•style of music (for example, rock or classical)
•year recorded
•year acquired as part of your collection
•recording company
•address of the recording company
Can you help me to design the tables that I need so that they are all in third normal form.I also want to create at least five sample data records for each table I create.
Can someone help me here please!.I'm novice when it comes to databases.
Eager Student
•
•
Join Date: Jan 2005
Location: United Kingdom
Posts: 13
Reputation:
Rep Power: 4
Solved Threads: 0
Okay, first thing when designing a database is to know what it is you are looking to do. You are looking to create a music database so we need to understand all the different entities used in order to model our database. Entities are the objects that we simulate, they can be physical items such as musical bands and abstract items such as genres. Each entity you can identify is a way of identifying each table necessary by default for your database. Entities are the basic naming part of a group and then, under entities, we have their properties which form our fields i.e. a band's name, year formed, year split etc. are all properties.
So, when we think about it the following are our entities:
So, we have 5 tables to begin with. Now, when we look at some of these we realise that more than one artist can sing a song and one song can be song by many artists. Therefore we have a many-to-many relationship. This can only mean we need a new table to simulate this. So, we add a new table for artists to songs. Record companies, likewise, can form a many-to-many relationship with artists. We need a table for this join. We keep doing this until we are satisfied all our relationships are correct.
For our record company we'll need their name, address, phone number, email, etc. We don't need the bands that come under their umbrella - that's done in our joining table.
I don't have time to go much further into this in detail but I hope that can you a start in where to look. The keyword in all of this is normalization - search the web; there's loads of tutorials on this.
So, when we think about it the following are our entities:
- Artist
- Song
- Genre (Rock, Pop, Jazz, etc.)
- Format (Cassette, LP, CD, etc.)
- Record Company
So, we have 5 tables to begin with. Now, when we look at some of these we realise that more than one artist can sing a song and one song can be song by many artists. Therefore we have a many-to-many relationship. This can only mean we need a new table to simulate this. So, we add a new table for artists to songs. Record companies, likewise, can form a many-to-many relationship with artists. We need a table for this join. We keep doing this until we are satisfied all our relationships are correct.
For our record company we'll need their name, address, phone number, email, etc. We don't need the bands that come under their umbrella - that's done in our joining table.
I don't have time to go much further into this in detail but I hope that can you a start in where to look. The keyword in all of this is normalization - search the web; there's loads of tutorials on this.
Sounds like your in college and looking at your Office XP Book ?
I recently did that assignment
I recently did that assignment
Firefox: no, its not the end all solution, it has its own issues and in time it will be just as insecure as IE, when its hit Firefox 6, if it makes it that far. Oh, and AOL pays for it, incase you didn't know.
Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
•
•
Join Date: May 2005
Posts: 18
Reputation:
Rep Power: 4
Solved Threads: 0
Well, I don't quite grasp Zachery what do you mean by saying" I recently did that assignment".I will be grateful if you can briefly explain that for me please!!!.
Eager Student
Eager Student
•
•
•
•
Originally Posted by Zachery
Sounds like your in college and looking at your Office XP Book ?I recently did that assignment
•
•
Join Date: May 2005
Posts: 18
Reputation:
Rep Power: 4
Solved Threads: 0
Well, Thank you very much for explanation it gave me a clear direction a little, I have searched for normalization and I got a good normalization tutorials.Thank you very much I highly I appreciate your help.
Eager Student
Eager Student
•
•
•
•
Originally Posted by Stewart
Okay, first thing when designing a database is to know what it is you are looking to do. You are looking to create a music database so we need to understand all the different entities used in order to model our database. Entities are the objects that we simulate, they can be physical items such as musical bands and abstract items such as genres. Each entity you can identify is a way of identifying each table necessary by default for your database. Entities are the basic naming part of a group and then, under entities, we have their properties which form our fields i.e. a band's name, year formed, year split etc. are all properties.
So, when we think about it the following are our entities:
- Artist
- Song
- Genre (Rock, Pop, Jazz, etc.)
- Format (Cassette, LP, CD, etc.)
- Record Company
So, we have 5 tables to begin with. Now, when we look at some of these we realise that more than one artist can sing a song and one song can be song by many artists. Therefore we have a many-to-many relationship. This can only mean we need a new table to simulate this. So, we add a new table for artists to songs. Record companies, likewise, can form a many-to-many relationship with artists. We need a table for this join. We keep doing this until we are satisfied all our relationships are correct.
For our record company we'll need their name, address, phone number, email, etc. We don't need the bands that come under their umbrella - that's done in our joining table.
I don't have time to go much further into this in detail but I hope that can you a start in where to look. The keyword in all of this is normalization - search the web; there's loads of tutorials on this.
I mean you were speciifcly asking for help with a homework assignment :p
Firefox: no, its not the end all solution, it has its own issues and in time it will be just as insecure as IE, when its hit Firefox 6, if it makes it that far. Oh, and AOL pays for it, incase you didn't know.
Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
•
•
Join Date: May 2005
Posts: 18
Reputation:
Rep Power: 4
Solved Threads: 0
You got that wrong you, I think you need to have one of my developed web guessing games so that in future you may guess things right.Lastly you should be careful with words you use some people retaliate some learn your personalitiles through your own mouth.If you want some of my products(guessing games) just tell me and give me your e-mail address then I will forward them unto you.
Eager Student
Eager Student
•
•
•
•
Originally Posted by Zachery
I mean you were speciifcly asking for help with a homework assignment :p
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Database Design Marketplace
- Previous Thread: Frontend HTML, Backend MS Access Database??
- Next Thread: Why should we never use an artificially generated numeric ID as a primary key


Linear Mode