Re: How can I produce the following desired result? - Mailing list pgsql-sql

From greg@turnstep.com
Subject Re: How can I produce the following desired result?
Date
Msg-id e4ac6a52d3f01e6dfe0a2d31c2f5b5b5@biglumber.com
Whole thread Raw
In response to Re: How can I produce the following desired result?  ("aicean" <aicean@netspeed-tech.com>)
List pgsql-sql
-----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-----





pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: about postgre SQL download
Next
From: Jean-Luc Lachance
Date:
Subject: Re: How can I produce the following desired result?