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 > ER Diagram n00b help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-09, 02:33
DJPlayer DJPlayer is offline
Registered User
 
Join Date: Feb 2009
Posts: 4
ER Diagram n00b help

just sorta starting working on basic Database design etc.. Unfortunately the book isn't laid out very nice and jumps around quite a bit.. nevertheless trying to set up a ERD.

so per say I had 3 entity sets.. (Televisions, Manufacturer and Shop)

obviously TV's would have a manufacturer and a shop that sells them.. but you can't be a shop and manufacturer.

If the manufacturer sells to a Shop.. then the some of the info would be stored.. (date, product etc..) I believe this is where the inheritance comes in that's throwing me off.

thanx for any help
Reply With Quote
  #2 (permalink)  
Old 02-11-09, 04:58
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
thanx for any help
Traditionally with homework assignments your supposed to give your best effort at a design (a list of tables and fields is fine) and then we comment where you might of made any mistakes. You're unlikely to learn much by just asking for a solution.
Reply With Quote
  #3 (permalink)  
Old 02-11-09, 08:52
DJPlayer DJPlayer is offline
Registered User
 
Join Date: Feb 2009
Posts: 4
Quote:
Originally Posted by mike_bike_kite
Traditionally with homework assignments your supposed to give your best effort at a design (a list of tables and fields is fine) and then we comment where you might of made any mistakes. You're unlikely to learn much by just asking for a solution.
I listed approx 1/10 of the assignment and specifically asked on how inheritance would be done. We did learn conversion from ERD to tables just a day or two ago though.. so unsure of how that might come out. All done anyways.. thanx for the help..
Reply With Quote
  #4 (permalink)  
Old 02-11-09, 11:27
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
the closest you get to inheritance in ERDs is with the supertype/subtype structure
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 02-11-09, 12:29
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Here's an article that show's an example of supertype/subtype in an ERD.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #6 (permalink)  
Old 02-11-09, 12:40
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
have a look at this, there are some really excellent examples:

Supertypes and Subtypes PPT (unfortunately with annoying transition sounds)
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #7 (permalink)  
Old 02-12-09, 01:04
DJPlayer DJPlayer is offline
Registered User
 
Join Date: Feb 2009
Posts: 4
wanted to thank everyone for the links. I want to have a good general understanding of database design etc..

IMO my text book is extremely poorly written vs. almost any other text book I've ever had.

we've moved from ERD's to Table Schemas to Relational algebra & quieries in a mere weak.. so I might invest in a more well written book over the weekend.

thanks.
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