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 427,227 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 2,224 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: 842 | Replies: 2 | Solved
Reply
Join Date: Jun 2008
Posts: 8
Reputation: motofoto is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
motofoto motofoto is offline Offline
Newbie Poster

I can't stop thinking about inheritance!!

  #1  
Jun 14th, 2008
Hi

I have Client, Owner, and Staff entity, they all are persones!! with additional criteria...

Client
ID, FName, MName, LName

Owner
ID, FName, MName, LName

Staff
ID, FName, MName, LName

so Is there a concept of inheritance in RDBMS like SQL-Server-2005
if so how can I implement it.

At lease I will create a new Table called Person which include those attributes and create a 1-1 relationship between Person and those tables...what do you think.. Is that better or just complexing the design and why??

Thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2008
Posts: 295
Reputation: tesuji is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 41
tesuji tesuji is offline Offline
Posting Whiz in Training

Re: I can't stop thinking about inheritance!!

  #2  
Jun 14th, 2008
Hi motofoto

There is kind of inheritance - in EERM - where we have Generalization / Specialization, such called isa-relationships. Maybe you should first design an EERM. Your implementation idea of isa-relationships is correct, generic data might be collected in a person entity (table), specialized data in additional entities (tables, if you map EERM into relational model). Also there are one-to-one relationships between generic entity and specialized entities.

There is no other way to map isa-relationships from EERM into relational model (RM) then yours till this day. Though the latest SQL standard from 2003 has got a little OOP ideas added but it is far from classical OOP inheritance.

One cannot say that your approach would put more complexity into your design. Sure, because of one-to-one relationship you can merge generic and specialized entities into one one, where you would get three independent entities (tables) Client, Owner, Staff. But if the sketched problem is your assignment, probably your prof expects an isa-relationship solution of the problem.

krs,
tesu
Last edited by tesuji : Jun 14th, 2008 at 5:56 pm.
Reply With Quote  
Join Date: Jun 2008
Posts: 8
Reputation: motofoto is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
motofoto motofoto is offline Offline
Newbie Poster

Re: I can't stop thinking about inheritance!!

  #3  
Jul 9th, 2008
What is EERM
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 11:37 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC