QUESTION POSED ON: 26 September 2005
My question is related to count(*) and distinct. For example,
select distinct(fid), count(*)
from formstatus
where to_char(eventdatetime,'mm/yyyy')='01/2005'
and doctype='ZB01'
and lifestatus='AP'
group by fid
The result is:
fid count(*)
12345 1
12346 2
12347 1
12348 1
12349 3
12350 4
12351 1
12352 2
How can I list results where count(*) is greater than 2?
|