View lawprod.MSCM.TRAY_ON_HOLD_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
TL_DESCR varchar2 100
TRAY_NO varchar2 5
TRAY.TRAY_NO Implied Constraint R
SOURCE_LOCATION_NO number 22  √  null
SOURCE_LOCATION_NAME varchar2 50
SOURCE_COMPANY_NO number 4
SOURCE_COMPANY_NAME varchar2 30  √  null
COMMENTS varchar2 1000  √  null
TS_ID number 22
ON_HOLD_DT date 7  √  null
FIRST_NAME varchar2 55  √  null
LAST_NAME varchar2 55  √  null
QTY_DAMAGED number 22  √  null
QTY_MISSING number 22  √  null

Analyzed at Wed May 18 12:10 CDT 2011

View Definition:
SELECT TL.DESCR AS TL_DESCR, TS.TRAY_NO, TL.SOURCE_LOCATION_NO, LOCATION.NAME AS SOURCE_LOCATION_NAME, COMPANY.COMPANY_NO AS SOURCE_COMPANY_NO, COMPANY.DESCRIPTION AS SOURCE_COMPANY_NAME, TS.COMMENTS, TS.TS_ID, TS.MOD_DT AS ON_HOLD_DT, USERS.FIRST_NAME, USERS.LAST_NAME, NVL((SELECT SUM(TS_EXP.QTY) FROM TS_ITEM_EXCEPTION TS_EXP WHERE TS_EXP.EX_NO IN ( '1002','1003','1004') AND TS_EXP.TS_ID = TS.TS_ID), 0) AS QTY_DAMAGED, NVL(( SELECT SUM(TS_EXP.QTY) FROM TS_ITEM_EXCEPTION TS_EXP WHERE TS_EXP.EX_NO IN ('1005','1006','1007') AND TS_EXP.TS_ID = TS.TS_ID ), 0) AS QTY_MISSING FROM TRAYSET_CURRENT_VW TS, TRAY_LIST TL, USERS, LOCATION, COMPANY WHERE TS.TL_ID = TL.TL_ID AND TS.USER_ID = USERS.USER_ID AND TL.SOURCE_LOCATION_NO = LOCATION.LOCATION_ID AND COMPANY.COMPANY_NO = LOCATION.COMPANY_NO AND TS.HOLD_IND = 'Y'
 
Possibly Referenced Tables/Views:


Close relationships: