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 this can be done?

Re: how this can be done?

From: Praveen <pmohanan_at_directvinternet.com>
Date: Tue, 09 Apr 2002 00:14:30 -0700
Message-ID: <3CB294D6.F64B7968@directvinternet.com>


select type ||':', count(*) || ' people' from <table>
group by type;

Hope this helps.

Henry wrote:

> however, there could be no employ for a certain type at all.
>
> My boss wants an query that list all types with its number of employees.
> and the sql result will be like:
>
> type0 : 5 people
> type1 : 1 people
> type2 : 0 people
> ...
>
> how can i accomplish this?
> thanx a lot!

--


Regards,

Praveen
Received on Tue Apr 09 2002 - 02:14:30 CDT

Original text of this message

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