Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Query Hint
Vince wrote:
>> I have a ORDERS table as follows:
[...]
>> select department, level, count(*) as QUANTITY from orders
Yes, but I have to compute also quantity (count(*)) in the same query, i.e. I need to know for each department how many orders are at a certain step, how many at another step and so on.
How can I modify this query in order to achieve this result?
Thanks. Received on Mon Feb 12 2007 - 01:16:09 CST
![]() |
![]() |