Re: Objects and Relations

From: Marshall <marshall.spight_at_gmail.com>
Date: 30 Jan 2007 09:42:55 -0800
Message-ID: <1170178975.387718.227550_at_h3g2000cwc.googlegroups.com>


On Jan 30, 5:00 am, Bob Badour <bbad..._at_pei.sympatico.ca> wrote:
> Marshall wrote:
>
> > Relationally:
>
> > select min(S1.index) from S S1 where
> > (select min(S2.c = str.c) from S S2, str
> > where S2.index+S1.index = str.index) and
> > S1.index >= fromIndex
>
> > "Select the smallest S.index where
> > every character in S' offset by S.index equals
> > every character in str,
> > that is greater than or equal to fromIndex"
>
> Should that be "S2.index-S1.index = str.index" ?
> ^
> ------------------------/

Uh, yeah. D'oh!

I wish I had a decent general purpose relational language I could prototype this stuff in. Starting in March I hope to be able to put some decent amount of effort into that. SQL is so clunky!

Marshall Received on Tue Jan 30 2007 - 18:42:55 CET

Original text of this message