Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: 2 count in a same select
Look at GROUP BY ... not DISTINCT.
Daniel Morgan
gil guerillot wrote:
> i have 2 tables objects and events:
>
> objects: code,category
> events: object,code,date
>
> join by events.object=object.code
>
> i want to count by category the number of events and the number of distinct
> objects with the same SQL SELECT query
>
> how can i do?
Received on Mon Apr 29 2002 - 11:10:38 CDT