Something like...
Select
CT_STOCKNO_P,
CT_STOCKSUMMARY,
CT_QUANTITY,
TR_QUANTITY,
TR_UNITCOST,
TR_TYPECODE,
MIN(CASE WHEN TR_TYPECODE = 'PREC' THEN TR_DATE END) AS MINPRECDATE,
MAX(CASE WHEN TR_TYPECODE = 'PREC' THEN TR_DATE END) AS MAXPRECDATE,
MIN(CASE WHEN TR_TYPECODE = 'ISSU' THEN TR_DATE END) AS MINISSUDATE,
MAX(CASE WHEN...