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: How can I know how many same orderno is shown in rows sequentially?

Re: How can I know how many same orderno is shown in rows sequentially?

From: deneb <cygdeneb_at_yonsei.ac.kr>
Date: Sun, 07 Oct 2007 19:56:00 -0700
Message-ID: <1191812160.665507.158040@k79g2000hse.googlegroups.com>


On 10 8 , 11 50 , z1hou1 <z1h..._at_gmail.com> wrote:
> Hmm..Did you try
> SELECT orderno,count(orderno) FROM <table>
> GROUP BY orderno
> ORDER BY orderno
>
> I am assuming here that the three character numeric to the prefix LM
> is fixed.
>
> Regards,
> z1hou1

Hi z1hou1.

it returns like this,

1	LM001	5
2	LM002	3
3	LM003	2
4	LM004	4
5	LM005	1

What I want is each count of same orderno IN SEQUENCIALY, not count of same orderno in whole rows.
Thanks a lot sincerely Received on Sun Oct 07 2007 - 21:56:00 CDT

Original text of this message

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