>scust.packageid + DTOS(scust.applicdt) IN ( ; > SELECT sc.packageid + DTOS(MAX(scust.applicdt)) ; > FROM a25scust sc ; > GROUP sc.packageid) AND ; >