From: Chad Thompson <chad@weblinkservices.com>
To: peter <peter@peter.com>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: grouping and first()
Date: Fri, 25 Oct 2002 09:06:17 -0600
Message-ID: <0e0201c27c38$3a793530$32021aac@chad> (raw)
References: <ap89jn$2e38$1@news.hub.org>
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@peter.com>
To: <pgsql-sql@postgresql.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
>
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: chad@weblinkservices.com, peter@peter.com
Subject: Re: grouping and first()
In-Reply-To: <0e0201c27c38$3a793530$32021aac@chad>
* 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