Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: OO concepts and relational databases

by Solo (Deacon)
on Aug 02, 2004 at 21:18 UTC ( [id://379432]=note: print w/replies, xml ) Need Help??


in reply to Re^3: OO concepts and relational databases
in thread OO concepts and relational databases

You're describing here a design rule able to emulate an heritage, which is mostly a matter of methodology/dba experience.

With a (real) OODBMS, this kind of *trickery* relational modelisation is not required.

Well and good to use an OODBMS if one is within your options. I make no assertions about whether an RDBMS or OODBMS is more appropriate.

However I will not allow it to be said RDBMS do not support ISA relationships, when they are clearly supported and the relationship follows directly from normalization. It is not trickery, nor even unusual.

Update: Removed inflammatory language that was not meant to be so.

--Solo
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.
  • Comment on Re^4: OO concepts and relational databases

Replies are listed 'Best First'.
Re^5: OO concepts and relational databases
by dragonchild (Archbishop) on Aug 03, 2004 at 02:43 UTC
    However I will not allow it to be said RDBMS do not support ISA relationships, when they are clearly supported and the relationship follows directly from normalization.

    Wrong. That is completely and utterly wrong. RDBMSes support HAS-A relationships, in that a lineitem record HAS-A invoice record that it is on. Set theory (which RDBMSes are based on) is all about HAS-A relationships. The only IS-A relationship is the relationship between the specific record and the table it lives in. The person you are attempting to lay the smack-down is absolutely correct.

    You might do well to rethink exactly what an IS-A relationship is vs. a HAS-A relationship and how normalization works with that.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested

      I think we are not using the word 'supports' in the same manner. Allow me to clarify my definition with a contextual example. RDBMS support ISA relationships like Perl 5 supports OO programming.
      --Solo
      --
      You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://379432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found