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 > Erd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-01-07, 17:06
Nate1 Nate1 is offline
Registered User
 
Join Date: Aug 2007
Location: Auckland New Zealand
Posts: 113
Erd

Im trying to design a Logical Schema for a DB Design, I expect the DB to grow to a very large size, so I need to find the best possible design.

1. An Advertisement is charged a Fee always.
2. An Event is Charged a Fee if the listing is made by a Profitable Organization.

3. A Profitable Organizations Listing is charged a Fee.
4. All Fees are Charged to Accounts.

I Have used three associative entities, Listing_Fee, Event_Fee, and Ad_Fee, is this an OK design solution, are the joins a concern. I used this setup as opposed to a single table for all three, because each row, will always omit two other columns, (int* 2) * Number of Records, This cold be a Huge Number, and large amount of redundant space.

Any Comments Appreciated.
Reply With Quote
  #2 (permalink)  
Old 08-01-07, 17:40
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
three associative tables is okay, yes, assuming you have three many-to-many relationships

i have a hard time believing a fee is an independent entity in its own right, though

that's like having an ecommerce site which has products for sale, and setting up a Price table, so that each row is a separate price, and then setting up an association table to products...
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-01-07, 17:47
Nate1 Nate1 is offline
Registered User
 
Join Date: Aug 2007
Location: Auckland New Zealand
Posts: 113
Its not exactly its own entity, it sits as ad_fee between an advertisement and the Account. So [PKFK] AD_ID and [PKFK] Account_ID. I Was thinking I could Assign the Price too the Associative Entities, so There will be an individual record of each charge (As there will be one for each time period). Or Should I use an Invoice or Something else?
Reply With Quote
  #4 (permalink)  
Old 08-01-07, 17:51
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i have no idea, sorry

i don't have your understanding of the business requirements
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 08-01-07, 17:54
Nate1 Nate1 is offline
Registered User
 
Join Date: Aug 2007
Location: Auckland New Zealand
Posts: 113
There will be a fee charged for each of the entities, based on a time period, month or year. To charge them How would you do it, would you use a Invoice for each individual fee.
Reply With Quote
  #6 (permalink)  
Old 08-01-07, 18:04
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i have no idea, sorry

i don't have your understanding of the business requirements
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #7 (permalink)  
Old 08-02-07, 14:10
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
Nate, if you could explain your application more thoroughly we might be able to help you.
__________________
visit: relationary
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