From: Steve Meynell <steve@candata.com>
To: pgsql-sql@postgresql.org
Subject: Selecting Most Recent Row
Date: Wed, 13 Dec 2000 14:03:14 -0500
Message-ID: <3A37C7F2.A39482E4@candata.com> (raw)
Ok here is the problem.
Table: Widgets
Fields: Unique_Key, DateStamp, Batch_Number, Instructions.
Basic Select Statement:
select Unique_Key from Widgets where Batch_Number>='inputedvalue'
Problem:
Some Batch_Numbers might be duplicated over a period of time. I want to
select the most recent of these Batch Numbers.
--
Steve Meynell
Candata Systems
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: steve@candata.com
Subject: Re: Selecting Most Recent Row
In-Reply-To: <3A37C7F2.A39482E4@candata.com>
References: <3A37C7F2.A39482E4@candata.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