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

Home -> Community -> Usenet -> c.d.o.server -> Re: Working with huge tables of chronological data

Re: Working with huge tables of chronological data

From: Maxim Demenko <mdemenko_at_gmail.com>
Date: Sat, 07 Apr 2007 09:41:47 +0200
Message-ID: <46174B3B.6060005@gmail.com>


Mladen Gogala schrieb:
> On Fri, 06 Apr 2007 22:45:44 +0100, Jonathan Lewis wrote:
>

>> Correct, the option using the analytic lag() would only give you the
>> adjacent pairs.

>
> Actually, it wouldn't. In version 10g, lag has an "offset" argument
> which would tell you by how much is it trailing.
>

Actually, lag() has an "offset" argument since 8i, nevertheless, lag() seems not to be suitable to find *all* consecutive pairs.

Best regards

Maxim Received on Sat Apr 07 2007 - 02:41:47 CDT

Original text of this message

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