select
decode(EQUIPMENTNO,'Null','','NULL','','null','',EQUIPMENTNO) TESTERID
,decode(PROBECARDNO,'Null','','NULL','','null','',PROBECARDNO)
PROBECARD
,decode(PROGRAMNAME,'Null','','NULL','','null','',PROGRAMNAME)PROGRAMNAME,SERIALNO,''
Temperature
,TBLWIPLOTSTATE.LOTSERIAL
from TBLWIPCHECKINPROGRAM,TBLWIPLOTSTATE
where
TBLWIPCHECKINPROGRAM.lotno=TBLWIPLOTSTATE.LOTNO and effectflag='1'
and
TBLWIPCHECKINPROGRAM.lotno='MNK1A228A0'
and OPNO='CP2'
union ALL
select distinct decode(TBLWIPPROGRAMCONTENT.EQUIPMENTNO,'Null','','NULL','','null','',TBLWIPPROGRAMCONTENT.EQUIPMENTNO)
TESTERID
,decode(TBLWIPPROGRAMCONTENT.PROBECARDNO,'Null','','NULL','','null','',TBLWIPPROGRAMCONTENT.PROBECARDNO)
PROBECARDNO
,
decode(PROGRAMNAME,'Null','','NULL','','null','',PROGRAMNAME)
PROGRAMNAME,SERIALNO,'' Temperature,TBLWIPLOTLOG.LOTSERIAL
from TBLWIPPROGRAMCONTENT, TBLWIPLOTLOG
where
TBLWIPPROGRAMCONTENT.LOTSERIAL=TBLWIPLOTLOG.LOTSERIAL and
TBLWIPPROGRAMCONTENT.lotno='MNK1A228A0'
and
TBLWIPLOTLOG.OPNO='CP2' order by LOTSERIAL DESC,SERIALNO desc
|
select
decode(EQUIPMENTNO,'Null','','NULL','','null','',EQUIPMENTNO) TESTERID
,decode(PROBECARDNO,'Null','','NULL','','null','',PROBECARDNO)
PROBECARD
,decode(PROGRAMNAME,'Null','','NULL','','null','',PROGRAMNAME)PROGRAMNAME,SERIALNO,''
Temperature
,TBLWIPLOTSTATE.LOTSERIAL
from TBLWIPCHECKINPROGRAM,TBLWIPLOTSTATE
where
TBLWIPCHECKINPROGRAM.lotno=TBLWIPLOTSTATE.LOTNO and effectflag='1'
and
TBLWIPCHECKINPROGRAM.lotno='MNK1A228A0'
and OPNO='CP2'
union ALL
select distinct
decode(TBLWIPPROGRAMCONTENT.EQUIPMENTNO,'Null','','NULL','','null','',TBLWIPPROGRAMCONTENT.EQUIPMENTNO)
TESTERID
,decode(TBLWIPPROGRAMCONTENT.PROBECARDNO,'Null','','NULL','','null','',TBLWIPPROGRAMCONTENT.PROBECARDNO)
PROBECARDNO
,
decode(PROGRAMNAME,'Null','','NULL','','null','',PROGRAMNAME) PROGRAMNAME
,SERIALNO
,'' Temperature
,TBLWIPPROGRAMCONTENT.LOTSERIAL
from TBLWIPPROGRAMCONTENT
where LOTSERIAL in
( select lotserial from TBLWIPLOTLOG
where LOTNO='MNK1A228A0' and OPNO= 'CP2'
)
order by LOTSERIAL DESC,SERIALNO desc
|