From: greg@turnstep.com
To: pgsql-sql@postgresql.org
Cc: aicean@netspeed-tech.com
Subject: Re: How can I produce the following desired result?
Date: Wed, 15 Oct 2003 14:48:37 -0000
Message-ID: <e4ac6a52d3f01e6dfe0a2d31c2f5b5b5@biglumber.com> (raw)
In-Reply-To: <017c01c392c8$baf24560$9e00a8c0@aicean>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> How can I produce the following desired result?
SELECT * FROM mytable
JOIN
(SELECT goodid, MAX(storehistoryid) AS storehistoryid FROM mytable GROUP by 1) AS a
USING (goodid,storehistoryid);
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200310151046
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html
iD8DBQE/jV4PvJuQZxSWSsgRAmYlAJwL06D+VNkmAT7RDcjXPgGu9oPXkgCgx1SJ
OASzEJlWv6qi05xXhPH1NBY=
=szda
-----END PGP SIGNATURE-----
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: greg@turnstep.com, aicean@netspeed-tech.com
Subject: Re: How can I produce the following desired result?
In-Reply-To: <e4ac6a52d3f01e6dfe0a2d31c2f5b5b5@biglumber.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