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

Home -> Community -> Usenet -> c.d.o.misc -> SQL grouping continous records

SQL grouping continous records

From: Peter <pba_at_arcor.de>
Date: 11 Feb 2003 08:55:00 -0800
Message-ID: <984d49cb.0302110855.7b36cc2b@posting.google.com>


Hi all,

I want to group continous records
I have the following records:

col1 col2

1     A
2     A        
3     B
4     A
5     C
6     C
7     A
8     A

The following table represent what i want: Count(col2) col2

2            A
1            B
1            A
2            C
2            A

Do you know a solution in SQL???

Thx
Peter Received on Tue Feb 11 2003 - 10:55:00 CST

Original text of this message

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