小八路小八路(提问者)SELECT DISTINCT VENDORLOTID FROM (SELECT TECHNOLOGY,PRODUCTNAME,LOTID,VENDORLOTID,TO_DATE(SUBSTR(STARTDATE,1,8)||\' \'||SUBSTR(STARTTIME,1,6),\'YYYYMMDD HH24MISS \') START_TIME,
VENDORID,LOTTYPE FROM P1WR01.SDB_TB_INFO_WIP) WHERE 1=1 AND
TECHNOLOGY IN (\'${TECHNOLOGY}\') AND LOTID IN (\'${LOTID}\')
ORDER BY VENDORLOTID