"Aaron Bono" <postgresql(at)aranya(dot)com> writes:> Is this SQL-99 compliant or a PostgreSQL specific query? I really like it> and have never seen this before.
DISTINCT ON is a Postgres-ism, I'm afraid. It's pretty handy though.
regards, tom lane