Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: why hierarchy?

Re: why hierarchy?

From: Aloha Kakuikanu <aloha.kakuikanu_at_yahoo.com>
Date: 31 Jul 2006 15:07:20 -0700
Message-ID: <1154383640.664455.169890@h48g2000cwc.googlegroups.com>

Neo wrote:
> >>> how you would represent something like "A person called Bob is friends with a person called Tom" in your system (obviously that's a bidirectional relationship).
> >>
> >> (new 'bob 'person)
> >> (new 'tom 'person)
> >> (new 'friend 'verb)
> >> (create bob friend tom)
> >> (create tom friend bob)
> >
> > A better question would be to ask if the requirements change and one
> > needs to record when the friendship began, how does dbd record the bob
> > and tom have been friends since October 12, 1993 ?
>
> (new 'since)
> (new '10/12/1993 'date)
> (create bob friend tom since 10/12/1993)
> (create tom friend bob since 10/12/1993)
>
> Note: date modelled in simplified manner. Also since could instead be
> begin, start, etc.

Let me guess. The date '10/13/1993 ' would be

(new 'as)
(new 'successor)
(create date '11/12/1993' as successor of 10/12/1993)

yahoo! This reminds me

http://www.research.att.com/~bs/whitespace98.pdf Received on Mon Jul 31 2006 - 17:07:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US