Re: How can I produce the following desired result?

Поиск
Список
Период
Сортировка
От greg@turnstep.com
Тема Re: How can I produce the following desired result?
Дата
Msg-id e4ac6a52d3f01e6dfe0a2d31c2f5b5b5@biglumber.com
обсуждение исходный текст
Ответ на Re: How can I produce the following desired result?  ("aicean" <aicean@netspeed-tech.com>)
Список 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 по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: about postgre SQL download
Следующее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: How can I produce the following desired result?