ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] SQL¬d¸ß½Ð±Ð¡H

select aaa.* from aaa,
(select stockid, MAX(§Ç¸¹) as MAXA from AAA
group by stockid) bbb
where aaa.stockid = bbb.stockid
and aaa.§Ç¸¹ = bbb.maxa
order by aaa.stockid
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

        ÀR«ä¦Û¦b : ¥Í®ð¡A´N¬O®³§O¤Hªº¹L¿ù¨ÓÃg»@¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD