The Straight Dope

Go Back   Straight Dope Message Board > Main > General Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2003, 01:53 PM
LilShieste LilShieste is offline
Guest
 
Join Date: Dec 2001
Database question

It's been a little while since I've created a database from scratch. Can someone tell me how I can implement "IsA hierarchy" (i.e. "Attribute inheritance") in a database?

For example: If Person is a table in the database, employee has an IsA relationship to Person (employee has all of the attributes that person does, and more)

I'm working with MS Access right now, but if someone could let me know how they would implement it in Oracle, it would be just as helpful.


LilShieste
Reply With Quote
Advertisements  
  #2  
Old 07-21-2003, 02:06 PM
Athena Athena is offline
Charter Member
 
Join Date: May 1999
Location: da UP, eh
Posts: 11,757
Most relational databases don't support this kind of inheritance. Look for a OO database if you really need it.
Reply With Quote
  #3  
Old 07-21-2003, 02:13 PM
LilShieste LilShieste is offline
Guest
 
Join Date: Dec 2001
Ahh, ok. Thanks Athena. I can work around it, it just would have been nicer to have some kind of inheritance.



LilShieste
Reply With Quote
  #4  
Old 07-21-2003, 02:29 PM
ultrafilter ultrafilter is online now
Guest
 
Join Date: May 2001
Undoubtedly, there is a workaround, but it's going to be very complicated. See if you can find an OO database product.
Reply With Quote
Reply

Bookmarks

Thread Tools
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
Forum Jump


All times are GMT -5. The time now is 07:37 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Send questions for Cecil Adams to: cecil@chicagoreader.com

Send comments about this website to: webmaster@straightdope.com

Terms of Use / Privacy Policy

Advertise on the Straight Dope!
(Your direct line to thousands of the smartest, hippest people on the planet, plus a few total dipsticks.)

Publishers - interested in subscribing to the Straight Dope?
Write to: sdsubscriptions@chicagoreader.com.

Copyright © 2013 Sun-Times Media, LLC.