•
•
•
•
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
![]() |
•
•
Join Date: Jun 2008
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
•
•
Join Date: Apr 2008
Posts: 295
Reputation:
Rep Power: 1
Solved Threads: 41
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
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Database Design Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Database Design Forum
- Previous Thread: Mutual Many to Many relationship
- Next Thread: Inheritance Implementation (This does not ensure integrity )


Linear Mode