View lawprod.MSCM.LOAD_TRACKING_INFO_TRAY Generated by
SchemaSpy
Legend:
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents Comments
LOAD_ID number 22
LOAD_STER.LOAD_ID Implied Constraint R
CREATED_DATE date 7
END_DATE date 7  √  null
CYCLE_NO varchar2 50  √  null
STERILIZER_EQ_NO number 8
STERILIZER_EQUIPMENT.STERILIZER_EQ_NO Implied Constraint R
STER_NO number 4
STERILIZATION_TYPE.STER_NO Implied Constraint R
STER_LOCATION number 22  √  null
STER_LOCATION_CODE varchar2 5
STER_LOCATION_NAME varchar2 50
FACILITY_NAME varchar2 30  √  null
FACILITY_NO number 4
TYPE_NAME varchar2 40
COMMENTS varchar2 100  √  null
LOAD_ASID varchar2 10
TRAY_NO varchar2 5
TRAY.TRAY_NO Implied Constraint R
DESCR varchar2 100
USER_NAME varchar2 80
USER_ID number 22
USERS.USER_ID Implied Constraint R
PROCESS_NAME varchar2 50
STER_NAME varchar2 100
TRAY_LOCATION_NO number 22  √  null
TRAY_LOCATION_NAME varchar2 50
TRAY_FACILITY_NAME varchar2 30  √  null
TRAY_FACILITY_NO number 4
IS_TRAY_USED_AGAIN char 3  √  null
USED_AGAIN_TIME date 7  √  null
IS_TRAY_STER_AGAIN char 3  √  null
STER_AGAIN_DATE date 7  √  null

Analyzed at Wed May 18 12:10 CDT 2011

View Definition:
SELECT LOAD_STER.LOAD_ID, LOAD_STER.CREATED_DATE, LOAD_STER.END_DATE, LOAD_STER.CYCLE_NO, LOAD_STER.STERILIZER_EQ_NO, STERILIZER_EQUIPMENT.STER_NO, TRAYSET.ASSM_LOC_NO AS STER_LOCATION, STER_LOCATION.LOCATION_CODE AS STER_LOCATION_CODE, STER_LOCATION.NAME AS STER_LOCATION_NAME, STER_COMPANY.DESCRIPTION AS FACILITY_NAME, STER_COMPANY.COMPANY_NO AS FACILITY_NO, STERILIZATION_TYPE.NAME AS TYPE_NAME, LOAD_STER.COMMENTS, LOAD_CONTENT.ASID AS LOAD_ASID, TRAYSET.TRAY_NO, TRAY_LIST.DESCR, USERS.NAME AS USER_NAME, USERS.USER_ID, PROCESS.NAME AS PROCESS_NAME, STERILIZER_EQUIPMENT.NAME AS STER_NAME, TRAY_LIST.SOURCE_LOCATION_NO AS TRAY_LOCATION_NO, LOCATION.NAME TRAY_LOCATION_NAME, COMPANY.DESCRIPTION AS TRAY_FACILITY_NAME, COMPANY.COMPANY_NO AS TRAY_FACILITY_NO, ( SELECT DISTINCT 'Yes' FROM ASSEMBLY WHERE ASSEMBLY.TS_NO = TRAYSET.TS_NO AND ASSEMBLY.ACTIVITY IN (12,11,3) AND ASSEMBLY.ASM_TIME > LOAD_CONTENT.ADDED_DATE ) AS "IS_TRAY_USED_AGAIN", ( SELECT MIN(ASSEMBLY.ASM_TIME) FROM ASSEMBLY WHERE ASSEMBLY.TS_NO=TRAYSET.TS_NO AND ASSEMBLY.ACTIVITY IN (12,11,3) AND ASSEMBLY.ASM_TIME>LOAD_CONTENT.ADDED_DATE ) AS USED_AGAIN_TIME, ( SELECT DISTINCT 'Yes' FROM LOAD_CONTENT LC2 WHERE LC2.ASID = LOAD_CONTENT.ASID AND LC2.DB_ID > LOAD_CONTENT.DB_ID )AS "IS_TRAY_STER_AGAIN", ( SELECT MIN(LC2.ADDED_DATE) FROM LOAD_CONTENT LC2 WHERE LC2.ASID = LOAD_CONTENT.ASID AND LC2.DB_ID > LOAD_CONTENT.DB_ID ) AS "STER_AGAIN_DATE" FROM LOAD_STER, USERS, PROCESS, STERILIZER_EQUIPMENT, LOAD_CONTENT, LOCATION, COMPANY, STERILIZATION_TYPE, TRAYSET, TRAY_LIST, LOCATION STER_LOCATION, COMPANY STER_COMPANY WHERE LOAD_STER.CREATED_BY = USERS.USER_ID AND LOAD_STER.PROC_NO = PROCESS.PROCESS_NO AND LOAD_STER.STERILIZER_EQ_NO = STERILIZER_EQUIPMENT.STERILIZER_EQ_NO AND LOAD_CONTENT.LOAD_ID = LOAD_STER.LOAD_ID AND LOCATION.LOCATION_ID = TRAY_LIST.SOURCE_LOCATION_NO AND COMPANY.COMPANY_NO = LOCATION.COMPANY_NO AND STERILIZATION_TYPE.STER_NO = STERILIZER_EQUIPMENT.STER_NO AND TRAYSET.TS_NO = LOAD_CONTENT.ASID AND TRAYSET.TL_ID = TRAY_LIST.TL_ID AND STER_LOCATION.LOCATION_ID = TRAYSET.ASSM_LOC_NO AND STER_COMPANY.COMPANY_NO = STER_LOCATION.COMPANY_NO
 
Possibly Referenced Tables/Views:


Close relationships: