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 > OO approach to relational databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-04, 20:08
zgnilek zgnilek is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
OO approach to relational databases

Hey there guys,

I am in the process of designing a telemarketing database for our work and was wandering whether it would be possible to take an OO approach to designing the database.

The following tables will be required:

- Business (stores details of business inc contact details);
- Person (stores details of person inc contact details);
- Canvass (stores the results of canvassing inc future action required)

My idea is to create a business and then have the possibility to add multiple persons to that business by linking them. Then each person could have multiple canvass records linked to them.

Do you think that such approach is efficient and can you recommend some other way of achieving similar result.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 01-19-04, 05:26
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: OO approach to relational databases

Based on what you have said, the required tables would appear to be:

Business
Person - with foreign key to Business
Canvass - with foreign key to Person

Or if a Person can be associated with many Businesses then you would require an intersection table:

Business
Person
Business_Person - with foreign keys to Business and Person
Canvass - with foreign key to Person

I don't see anything "OO" about this approach, nor do I see any reason to look for an "OO" alternative to it.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
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