Help with query
От
Oleg Bartunov
Тема
Help with query
Дата
Msg-id
Pine.GSO.3.96.SK.990325060718.16970K-100000@ra
Список
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 по дате отправления