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 > DB Design: identifying a subset of records from a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-06, 04:07
legolas_elf legolas_elf is offline
Registered User
 
Join Date: Nov 2003
Posts: 12
DB Design: identifying a subset of records from a table

Hi,

I have an entity call FOOTBALL_MATCH.
Now I want to retrieve a list of the top 10 football matches for the week.
Should I create another entity called FOOTBALL_MATCH_TOP_TEN which references the original FOOTBALL_MATCH entity or add another member in the original entity ? What are the pros and cons for both.

Thanks.

Regards,

Legolas
Reply With Quote
  #2 (permalink)  
Old 05-18-06, 05:38
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
suppose you had a table of football players

which player has the most touchdowns? do you create a new entity? no

which player has the fewest interceptions? do you create a new entity? no

which player has played the most games? do you create a new entity? no

which player has the most touchdowns? do you create a new entity? no

rule of thumb: views aren't entities
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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