X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7D8789FA12F for ; Thu, 1 Jun 2006 23:41:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 45502-09 for ; Thu, 1 Jun 2006 23:41:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E936F9FA040 for ; Thu, 1 Jun 2006 23:41:18 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k522fHcE023449; Thu, 1 Jun 2006 22:41:17 -0400 (EDT) To: "Aaron Bono" cc: pgsql-sql@postgresql.org Subject: Re: Am I crazy or is this SQL not possible In-reply-to: References: <14505.1149189691@sss.pgh.pa.us> Comments: In-reply-to "Aaron Bono" message dated "Thu, 01 Jun 2006 20:44:18 -0500" Date: Thu, 01 Jun 2006 22:41:17 -0400 Message-ID: <23448.1149216077@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/36 X-Sequence-Number: 25272 "Aaron Bono" 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