Ragnar, Marc, thanks so much for the help: DISTINCT ON was *exactly* what I needed. It's not a part of any SQL standard I know of, but does the job _wonderfully_. Cheers, t.n.a.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных