Help with query
Help with query
От:
Oleg Bartunov <oleg@sai.msu.su>
Дата:
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