If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Over-generalization Crippling Design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-10, 16:33
8bitginger 8bitginger is offline
Registered User
 
Join Date: Dec 2010
Posts: 3
Over-generalization Crippling Design

Hello,

First time poster, long time lurker. I've been working on my media library (a database to store all information for the video, books, music, and video games in a collection) design for quite a while now, and my obsession trying to make everything as generic as possible is preventing me from making any progress. I was wondering if anyone could take a look at my ERD and give suggestions. I would really appreciate it.

I'm trying to minimize data duplication as much as possible, but no matter what schema I come up with, I always run into it. Right now, I'm having issues with a media that spans multiple types (video, book, music, game). Each 'type' will have to be assigned a new instance in the media entity, but if I make the relationship between type and media m:m, I lose the relationship between each media instance and its format (DVD, CD, etc).

Just one example of the many, many problems I've run into.

Again, any help, input, suggestions, etc. would be very much appreciated.

Oh, also, I haven't gotten to the point where I've implemented every entity in SQL, so some (or most) of the entities are probably incorrect.

Experience: College classes and some work experience. Mostly just a hobby now.
Attached Thumbnails
Over-generalization Crippling Design-media_db.png  
Reply With Quote
  #2 (permalink)  
Old 12-20-10, 19:01
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Including animals may have been a touch excessive. Just sayin.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 12-20-10, 22:29
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
creating a surrogate key for a date is overkill -- just use the date

and what's a "date type"?

all in all there seem to be too may "type" tables
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #4 (permalink)  
Old 12-21-10, 12:52
8bitginger 8bitginger is offline
Registered User
 
Join Date: Dec 2010
Posts: 3
I wanted to use to date type to hold the different kinds of dates that could be associated with a medium, like different release dates, or dates for people, like birth date, death date, marriage date, etc. Just trying to make it generic so it could be used for anything, actually, so it can be modified in the future.
Reply With Quote
  #5 (permalink)  
Old 12-22-10, 00:50
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i think your date types are over-generalizing your design
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 12-22-10, 10:14
8bitginger 8bitginger is offline
Registered User
 
Join Date: Dec 2010
Posts: 3
LOL, yeah, maybe just a little. I think I'll just re-evaluate what I actually want to do and start fresh. Thanks for your help!
Reply With Quote
  #7 (permalink)  
Old 12-23-10, 01:40
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
Quote:
Originally Posted by Teddy View Post
Including animals may have been a touch excessive. Just sayin.
come on, Teddy - they're ... party animals!!!


Over-generalization Crippling Design-party-anmals.png

__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert


Last edited by loquin; 12-23-10 at 18:40.
Reply With Quote
  #8 (permalink)  
Old 01-03-11, 18:23
BarryWilliams BarryWilliams is offline
Registered User
 
Join Date: Apr 2010
Location: London, England
Posts: 24
Data Model for Media Libraries

Hi
I have drafted a Data Model on my Database Answers Web Site that might help you start thinking along the right lines :-
Media Libraries Data Model

Your draft is very complicated and it is not clear why that should be.
For example, why should you have a separate table for Cities ?

I recommend you think about creating a Top-Level Data Model.
and then create Subject Area Models when you can find a way to justify them.
Here is an example from Waste Management :-
Waste Management Data Model

Maybe you need a Subject Area Model for Addresses, like this one :-
Customer Addresses Data Model

And think about why every Entity needs to appear in either the Top-Level or Subject Area Model.

In other words, try to think about how you will use each Entity.

HTH

Barry Williams
Database Answers
London, England
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On