Re: Getting a grip on nested intervals and matrix encoding

From: Vadim Tropashko <vadimtro_at_gmail.com>
Date: Fri, 2 Jul 2010 18:03:06 -0700 (PDT)
Message-ID: <71dfce6f-0837-40b7-aa5a-7878b3ac757d_at_w15g2000pro.googlegroups.com>



On Jul 2, 2:45 pm, creecode <creec..._at_gmail.com> wrote:
> On Jul 2, 10:21 am, Tegiri Nenashi <tegirinena..._at_gmail.com> wrote:
>
> > select descendant.name
> > from hierarchy node, hierarchy descendant
> > where node.name = 'JONES'
> > and descendant.a11*node.a21-descendant.a11*node.a22 >=
> > node.a11*descendant.a21-node.a12*descendant.a21
> > and descendant.a11 * node.a21 <= descendant.a21 * node.a11;
>
> Hello Tegiri,
>
> Thank you for your response.  Unfortunately your query doesn't work
> for me.  Perhaps I've made an error somewhere.
>
> SELECT descendant.name FROM MatrixTreeNodes AS descendant,
> MatrixTreeNodes AS node WHERE descendant.a11 * node.a21 -
> descendant.a11 * node.a22 >=
> node.a11 * descendant.a21 - node.a12 * descendant.a21 AND
> descendant.a11 * node.a21 <= descendant.a21 * node.a11 AND node.name =
> 'FORD';
>
> name
> SCOTT
> FORD
> SMITH
>
> ** that isn't right **
>
> Toodle-loooooooooo.............
> creecode

http://vadimtropashko.wordpress.com/2010/07/03/more-errata-ancestor-query-in-matrix-encoding/ Received on Fri Jul 02 2010 - 20:03:06 CDT

Original text of this message