Eric G. Miller writes:
> If max(period) for an organization yields the most recent reporting,
> I want to get whatever is the most recent report for each organization.
SELECT org_id, max(period) FROM reports GROUP BY org_id;
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.