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 > Dont know if this is an entity

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-07, 06:12
piston piston is offline
Registered User
 
Join Date: Oct 2007
Posts: 13
Dont know if this is an entity

Hi, looking for some help here, I have a uni project to design a database for the uni library that supplies textboooks for students, these textbooks are orderd from a booklist given by course lectures, a booklist is given for each unit they take. Also the library sells books to the general public and orders books for them. This is my problem,

Is Textbook, Booklist and Book, different entities (We havent to use inheritence in this project), If I use them as different entities then the order entity will be all over the place, any help would be great thanks, Im just of to a lecture but will check back in when I get back, hope someone can help
Reply With Quote
  #2 (permalink)  
Old 10-05-07, 08:14
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
The simple test to determine if something is an entity is if you can imagine it as a discrete object. I can imagine a Textbook, Booklist, and a Book so I'd say that they were entities.

The simple test to determine if one entity is a "child entity" of a different entity is if one entity has all of the common attributes and no other attributes... If so, that entity is a candidate for being a parent entity. In your example, I'd guess that one of the entities might be a parent entity.

-PatP
Reply With Quote
  #3 (permalink)  
Old 10-05-07, 17:55
piston piston is offline
Registered User
 
Join Date: Oct 2007
Posts: 13
Thaks mate, I have choosen my entites for days now, but keep getting hung up on it, I should just stick with them and see what happens, time is running out due in next week.

Cheers
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