how this query can be done?
From: Henry <hxzhang_at_binary-solutions.net>
Date: Tue, 09 Apr 2002 02:14:55 GMT
Message-ID: <z8ss8.5923$KG3.353551_at_news2.telusplanet.net>
Date: Tue, 09 Apr 2002 02:14:55 GMT
Message-ID: <z8ss8.5923$KG3.353551_at_news2.telusplanet.net>
I have a table with different employees. It is known that employees may
fall into the following categories:
{ type0, type1, type2, type3, ...type 100, ....}
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:
how can i accomplish this?
type0 : 5 people
type1 : 1 people
type2 : 0 people
...
thanx a lot!