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: Can an analytic function do the following? find consective days where a value was over a threshold?

Re: Can an analytic function do the following? find consective days where a value was over a threshold?

From: jonwat <jonwaterhouse_at_mail.gov.nf.ca>
Date: 11 May 2006 10:32:49 -0700
Message-ID: <1147368769.203773.241320@j33g2000cwa.googlegroups.com>


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

Original text of this message

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