Selecting Most Recent Row

From: Steve Meynell <steve(at)candata(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Selecting Most Recent Row
Date: 2000-12-13 19:03:14
Message-ID: 3A37C7F2.A39482E4@candata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2000-12-13 19:04:13 Re: How to represent a tree-structure in a relational database
Previous Message Al Lewis 2000-12-13 18:23:46 Null comparison