pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jack <datactrl@tpg.com.au>
To: pgsql-sql@postgresql.org
Subject: the best way to get the topest 3 record in every group
Date: Mon, 9 Sep 2002 10:21:30 +1000
Message-ID: <002201c25796$d923d3f0$1400a8c0@jac> (raw)

Hi,
There is a table like :
<<
itemNo
supplier
purchaseDate
Price
Qty
<<
Please provide an idea if I want to get the latest 3 puchase records for
each item and supplier. Thank you in advance.

jack




view thread (7+ messages)  latest in thread

Message-ID: <002201c25796$d923d3f0$1400a8c0@jac>
Permalink:  ../002201c25796$d923d3f0$1400a8c0@jac/
Also on:    postgresql.org/message-id/002201c25796$d923d3f0$1400a8c0@jac

 · 

reply

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: datactrl@tpg.com.au
  Subject: Re: the best way to get the topest 3 record in every group
  In-Reply-To: <002201c25796$d923d3f0$1400a8c0@jac>

* 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