View lawprod.MSCM.TRAY_IN_LOCATION_VW 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
SERVICE_NAME varchar2 40  √  null
TL_NO varchar2 6
TL_DESCR varchar2 100
EXCEPTION_IND number 22  √  null
STER_DT date 7  √  null
LOCATION_ID number 22  √  null
LOCATION.LOCATION_ID Implied Constraint R
SUBLOCATION_CODE varchar2 7  √  null

Analyzed at Wed May 18 12:10 CDT 2011

View Definition:
SELECT NVL(SERVICE.NAME, 'No Service Defined') AS SERVICE_NAME, TL_CURRENT.TL_NO, TL_CURRENT.DESCR AS TL_DESCR, NVL(EXCEPTIONS.EXCEPTION_IND, 0) AS EXCEPTION_IND, STER_LOAD.STER_DT, TS.ASSM_LOC_NO AS LOCATION_ID, TL_CURRENT.STORAGE_BIN AS SUBLOCATION_CODE FROM TRAYSET_CURRENT_VW TS, TRAY_LIST TL, TRAY_LIST_CURRENT_VIEW TL_CURRENT, SERVICE, ( SELECT TRAYSET.TS_ID, MAX(LOAD_CONTENT.ADDED_DATE) AS STER_DT FROM LOAD_CONTENT, TRAYSET WHERE LOAD_CONTENT.ASID = TRAYSET.TS_NO AND TRAYSET.STATUS <> 11 GROUP BY TRAYSET.TS_ID ) STER_LOAD, ( SELECT DISTINCT TS_ID, 1 AS EXCEPTION_IND FROM TS_ITEM_EXCEPTION ) EXCEPTIONS WHERE TS.TL_ID = TL.TL_ID AND TL.TL_NO = TL_CURRENT.TL_NO AND TL_CURRENT.SERV_NO = SERVICE.SERV_NO (+) AND TS.TS_ID = STER_LOAD.TS_ID (+) AND TS.TS_ID = EXCEPTIONS.TS_ID (+) AND EXISTS(SELECT 1 FROM TRAY WHERE TRAY.TL_NO=TL_CURRENT.TL_NO)
 
Possibly Referenced Tables/Views:


Close relationships: