SQL query

  • From: "Huascar Espinoza" <hespinoza@xxxxxxxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 18 May 2004 16:16:36 -0400

How can I get the following statistics in singles SQL queries:

Table has a sequencing number field (NRO_CORREL) and a date field =

NRO_CORREL                      DATE_REF
1                               date1
2                               date2
3                               date3
5                               date4
6                               date5
4                               date6
8                               date7
9                               date8

I need to find:

1) Qty. and list of regs. with lacked NRO_CORREL in the sequence
2) Qty. and list of regs. With disordered NRO_CORREL

Thank you!

Please see the official ORACLE-L FAQ: http://www.orafaq.com
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html

Other related posts: