Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Can an analytic function do the following? find consective days where a value was over a threshold?
You can replace the grp is not null by grp = 1 (i.e. the grp that ends
on the latest date inthe query). You would add the WHERE clause in the
innermost query. You might want to consider making it a BETWEEN e.g.
between sysdate and sysdate-30 to limit the amount of data that is
used.
Jon Received on Thu May 11 2006 - 12:32:49 CDT