SELECT STOCKREF
FROM LG_001_01_STLINE STLINE
WHERE STLINE.TRCODE IN (1,14)
and STLINE.CANCELLED=0
AND STLINE.STOCKREF NOT IN (SELECT STOCKREF FROM LG_001_01_STLINE WHERE TRCODE=8 AND CANCELLED=0)
GROUP BY STOCKREF
alım ve devri yapılıp satışı yapılmamışlar.