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 -> Re: Is this possible

Re: Is this possible

From: Bill <Norwester656_at_hotmail.com>
Date: 12 Mar 2003 08:13:25 -0800
Message-ID: <5f6e1e81.0303120813.65929fe0@posting.google.com>


"Isaac Blank" <izblank_at_yahoo.com> wrote in message news:<BWuba.837$RT3.94220517_at_newssvr13.news.prodigy.com>...
> SELECT class_id, MIN(doc_num) item_lo,MAX(doc_num) item_hi,
> status
> FROM (
>
> SELECT dt.*, rank() over (Partition By Class_id Order by doc_num) rr
> FROM doctest dt
> )
> GROUP BY class_id,status,rr-doc_num
> ORDER BY class_id,MIN(doc_num)

Yes, that does the trick! Thanks so much Isaac!!!!

-Bill Received on Wed Mar 12 2003 - 10:13:25 CST

Original text of this message

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