Help with query - Mailing list pgsql-sql

From Oleg Bartunov
Subject Help with query
Date
Msg-id Pine.GSO.3.96.SK.990325060718.16970K-100000@ra
Whole thread Raw
List pgsql-sql
Hi,

I have query
 select source,max(up_date),count(*) from flats group by source
which gets me
source                    |       max|count
--------------------------+----------+-----

where source is a company name, max(up_date) - the last update,
count  - total number of items for giver company

but I need

source                    |       max| count_updates
--------------------------+----------+-----

where count_updates is a number of *last updated* items for given company ?

How I can do this with SQL ?

    Best regards,

        Oleg

_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83


pgsql-sql by date:

Previous
From: "Jackson, DeJuan"
Date:
Subject: RE: [SQL] types and subtypes
Next
From:
Date:
Subject: Undeliverable Message