View lawprod.MSCM.INSTRUMENT_HISTORY_VIEW | Generated by SchemaSpy |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Analyzed at Wed May 18 12:10 CDT 2011 |
View Definition:
SELECT ITL.DT_TIME, INSTRUMENT_ID, C.COMPANY_NO, C.DESCRIPTION COMPANY_NAME, concat(concat(C.COMPANY_NO, ' - '), C.DESCRIPTION) COMPANY_NO_NAME, L.LOCATION_ID, L.LOCATION_CODE, L.NAME LOCATION_NAME, concat(concat(L.LOCATION_CODE, ' - '), L.NAME) LOCATION_CODE_NAME, DECODE(ITL.ACTIVITY, 4, 'Assembly', 8, 'Sterilization', 7, 'Picking', 5, 'Transfer', 2, 'Activate', 3, 'Inactivate', 9, 'Edit Mfg. Ser. Nbr.') ACTIVITY, DECODE(ITL.ACTIVITY, 4, 'ASID', 8, 'ASID', 7, 'ASID', 5, DECODE(ID_NBR, '', '', 'ASID'), 2, '', 3, (DECODE(ID_NBR, '', '', 'ASID')), 9, 'Old Mfg. Ser. Nbr.') ID_TYPE, DECODE(ITL.ACTIVITY, 9, OLD_MFG_SR_NBR, ID_NBR) ID_NBR, concat(concat(U.LAST_NAME, ', '), U.FIRST_NAME) USER_NAME FROM INSTRUMENT_TRACK_LOG ITL, INSTRUMENT_TRACK IT, LOCATION L, COMPANY C, USERS U WHERE ITL.INSTRUMENT_TRACK_ID = IT.INSTRUMENT_TRACK_ID AND L.LOCATION_ID = ITL.LOCATION_ID AND C.COMPANY_NO = L.COMPANY_NO AND U.USER_ID = ITL.USER_ID AND IT.STATUS='A'
Possibly Referenced Tables/Views:
|