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

Home -> Community -> Mailing Lists -> Oracle-L -> SQL query

SQL query

From: Huascar Espinoza <hespinoza_at_superele.gov.bo>
Date: Tue, 18 May 2004 16:16:36 -0400
Message-ID: <B2DC72F71B99474B8CCA0C3611AAC2A81E4464@correo.super.gov.bo>

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

Table has a sequencing number field (NRO_CORREL) and a date field = (DATE_REF). Example (ORDER BY DATE_REF):

NRO_CORREL DATE_REF
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D

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!

Hu=E1scar



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org 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
-----------------------------------------------------------------
Received on Tue May 18 2004 - 15:13:05 CDT

Original text of this message

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