SON ALINAN CARİ İLE İLGİLİ ŞU AN YARDIMCI OLAMAMDA AMA SON ALIŞ FİYATINI GÖSTEREN
QUERY Yİ GÖNDREYİM
SELECT DATE_, PRICE FROM LG_001_01_STLINE
WHERE DATE_ = (select MAX(DATE_) FROM LG_001_01_STLINE WHERE DATE_ BETWEEN '2008-01-01' and '2008-12-31' AND STOCKREF = (SELECT LOGICALREF FROM LG_001_ITEMS WHERE CODE = 'cpu0001' ) AND TRCODE = 1)
AND STOCKREF = (SELECT LOGICALREF FROM LG_001_ITEMS WHERE CODE = 'cpu0001' ) AND TRCODE = 1
CPU001 >> STOĞUN KODU
KOLAY GELSİN.