User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 423,612 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,152 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser: Programming Forums
Views: 398 | Replies: 0
Reply
Join Date: Jul 2008
Location: Lahore, Pakistan
Posts: 1
Reputation: CuriousHARD is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
CuriousHARD CuriousHARD is offline Offline
Newbie Poster

how to design this scenario contact for more than one entities

  #1  
Jul 5th, 2008
hi all, i have a scenario to discuss with you all expert people....

i want to save

contact(phone , fax, email, mobile, contact pesonName, contactPersonPhone)

this information will be saved for more than one entities like....
a client will have a contact
a company will also have a contact
as i am working on a Real estate Enterprise solution so there is also an entity like building that also has some contact

so in this scenario we got three entities that can have contact
so how can we best manage this thing is database...

i came up with a solution that is
create three entities (client, company, and building) and one entity contact
also three tables client, company and building one for each entity and a contact table
and i put a foreign key of contact in each table of client, company and building

is this a better solution
or
should i make separate table to save contact for each entity
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Database Design Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Database Design Forum

All times are GMT -4. The time now is 8:54 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC