From: Aaron Bono <postgresql@aranya.com>
To: Yasir Malik <ymalik@cs.stevens.edu>
Cc: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: Am I crazy or is this SQL not possible
Date: Thu, 1 Jun 2006 14:30:31 -0500
Message-ID: <bf05e51c0606011230n3abf90e3h81781e0ab0451693@mail.gmail.com> (raw)
In-Reply-To: <Pine.NEB.4.64.0606011450520.855@pink-elephant.cs.stevens-tech.edu>
References: <df01c91b0606011043g61328d6habaee8fa037a5ccf@mail.gmail.com>
<Pine.NEB.4.64.0606011409360.758@pink-elephant.cs.stevens-tech.edu>
<447F34B1.5020004@oisinglynn.com>
<Pine.NEB.4.64.0606011450520.855@pink-elephant.cs.stevens-tech.edu>
It is a hack, but when someone wants you to do something in a way
different from the norm, aren't they asking for a hack?
SQL Server does something like
select top (1) from ....
I am thinking this is NOT a SQL-99 standard.
-Aaron
On 6/1/06, Yasir Malik <ymalik@cs.stevens.edu> wrote:
> > select max(date_sent) from table;
> > would equal
> > select date_sent from broadcast_history order by date_sent DESC limit 1;
> >
> That sounds like a hack. Is limit a SQL-99 standard? Is there are
> another way to do this?
> Sorry to take over your topic, Collin.
>
> Thanks,
> Yasir
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgresql@aranya.com, ymalik@cs.stevens.edu
Subject: Re: Am I crazy or is this SQL not possible
In-Reply-To: <bf05e51c0606011230n3abf90e3h81781e0ab0451693@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox