User Name Password Register
DaniWeb IT Discussion Community
All
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 402,623 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,177 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: Programming Forums
Views: 2237 | Replies: 6
Reply
Join Date: May 2005
Posts: 18
Reputation: Eager Student is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Eager Student Eager Student is offline Offline
Newbie Poster

Can anyone help me here!

  #1  
May 31st, 2005
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2005
Location: United Kingdom
Posts: 13
Reputation: Stewart is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Stewart's Avatar
Stewart Stewart is offline Offline
Newbie Poster

Re: Can anyone help me here!

  #2  
Jun 16th, 2005
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.
Reply With Quote  
Join Date: Nov 2003
Location: Ohio
Posts: 778
Reputation: Zachery has a spectacular aura about Zachery has a spectacular aura about 
Rep Power: 7
Solved Threads: 19
Colleague
Zachery's Avatar
Zachery Zachery is offline Offline
The Geek Father

Re: Can anyone help me here!

  #3  
Jun 16th, 2005
Sounds like your in college and looking at your Office XP Book ? 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
Reply With Quote  
Join Date: May 2005
Posts: 18
Reputation: Eager Student is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Eager Student Eager Student is offline Offline
Newbie Poster

Re: Can anyone help me here!

  #4  
Jun 16th, 2005
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
Originally Posted by Zachery
Sounds like your in college and looking at your Office XP Book ? I recently did that assignment
Reply With Quote  
Join Date: May 2005
Posts: 18
Reputation: Eager Student is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Eager Student Eager Student is offline Offline
Newbie Poster

Re: Can anyone help me here!

  #5  
Jun 16th, 2005
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
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.
Reply With Quote  
Join Date: Nov 2003
Location: Ohio
Posts: 778
Reputation: Zachery has a spectacular aura about Zachery has a spectacular aura about 
Rep Power: 7
Solved Threads: 19
Colleague
Zachery's Avatar
Zachery Zachery is offline Offline
The Geek Father

Re: Can anyone help me here!

  #6  
Jun 17th, 2005
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
Reply With Quote  
Join Date: May 2005
Posts: 18
Reputation: Eager Student is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Eager Student Eager Student is offline Offline
Newbie Poster

Re: Can anyone help me here!

  #7  
Jun 17th, 2005
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
Originally Posted by Zachery
I mean you were speciifcly asking for help with a homework assignment :p
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Database Design Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Database Design Forum

All times are GMT -4. The time now is 1:25 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC