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 > one-to-many

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-04, 02:39
aloha9950 aloha9950 is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Smile one-to-many

Dear All,

I would greatly appreciate if you can support me in enrity relationship issue.

The is a one-to-many relationship between EntityA (PK:GUID) and EntityB (PK:GUID, FK: EntityAGUID) . Example, one "Entity" can have multiple "Portfolios". However, i have three types of type Entitiey A which need to be in seperate tables because each has it's own properties. Example,
EntityA can be a Client, a Company, or a Fund

Client Company Fund
| | |
| | |
|_______ Portfolio _____|

I am looking to have the same PK for the three tables "Client / Company / Fund " so that there will be no conflict in the "Portfolio" FK.

Please advise for the best ERD structure.
Greatly appreciated
Reply With Quote
  #2 (permalink)  
Old 12-19-04, 20:16
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
entitysupertype --- 1-m --- portfolio
| | |
| | +-- 1-1 --- clientsubtype
| +-- 1-1 --- companysubtype
+-- 1-1 --- fundsubtype
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 12-21-04, 00:44
aloha9950 aloha9950 is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Thanks

Thanks for your reply, it is what i am looking for
Reply With Quote
  #4 (permalink)  
Old 12-21-04, 02:20
Vmusic Vmusic is offline
Registered User
 
Join Date: Dec 2004
Posts: 54
WhoooOOOoaaAAA

Hi Mr Aloha,
Listen....you're mixing Apples and Oranges as we say in the data modeling word.

If you're telling me A Client, A Comany and a Fund are three of the same type of thing, you didn't watch Sesame Street growing up.

Looooook - A 'party' is a person or organization
A fund is an account to group holdings or transactions under

I smell something fishy here....

Vmuisc
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