Re: Am I crazy or is this SQL not possible

From: "Aaron Bono" <postgresql(at)aranya(dot)com>
To: "Yasir Malik" <ymalik(at)cs(dot)stevens(dot)edu>
Cc: PostgreSQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Am I crazy or is this SQL not possible
Date: 2006-06-01 19:30:31
Message-ID: bf05e51c0606011230n3abf90e3h81781e0ab0451693@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)cs(dot)stevens(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Yasir Malik 2006-06-01 19:47:57 Re: Am I crazy or is this SQL not possible
Previous Message Tom Lane 2006-06-01 19:21:31 Re: Am I crazy or is this SQL not possible