Re: grouping and first()

From: "Chad Thompson" <chad(at)weblinkservices(dot)com>
To: "peter" <peter(at)peter(dot)com>, "pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: grouping and first()
Date: 2002-10-25 15:06:17
Message-ID: 0e0201c27c38$3a793530$32021aac@chad
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

select first(a) from ta order by a

in access, is equivilent to

select a from ta order by a limit 1

Thanks
Chad
P.S. Note that access will always return the same value if you exclude the
order by, this is not necessarily true with postgresql or any real RDBS.

----- Original Message -----
From: "peter" <peter(at)peter(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Sent: Thursday, October 24, 2002 2:12 AM
Subject: [SQL] grouping and first()

> Hi, just wondering if anyone can tell me what replaces the first function
> in access.
>
>
> Thanks
>
> PEter
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tim Perdue 2002-10-25 15:35:33 Re: Foreign character struggles
Previous Message Roberto Mello 2002-10-25 14:52:27 Re: Foreign character struggles