View lawprod.MSCM.ITEMS_IN_TRAY_LISTS 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
ITEM_ID number 22
ITEM.ITEM_ID Implied Constraint R
ITEM_NO varchar2 32
ITEM_DESCRIPTION varchar2 100  √  null
PROC_ITEM_NO varchar2 32  √  null
MFR_NO varchar2 35  √  null
LAST_MODIFIED_DT date 7
IMAGEPATH varchar2 255  √  null
LOCATION_ID number 22
LOCATION.LOCATION_ID Implied Constraint R
LOCATION_CODE varchar2 5
LOCATION_NAME varchar2 50
COMPANY_NO number 4
COMPANY.COMPANY_NO Implied Constraint R
COMPANY_NAME varchar2 30  √  null
MANUFACTURER_NAME varchar2 30  √  null
MANUFACTURER_DIV varchar2 4  √  null
MANUFACTURER_CODE varchar2 4  √  null
NUMBER_OF_TRAYLISTS number 22  √  null
QUANTITY_IN_SERVICE number 22  √  null

Analyzed at Wed May 18 12:10 CDT 2011

View Definition:
SELECT I.ITEM_ID, I.ITEM_NO, NVL(LOCATION_ITEM.ALT_ITEM_DESCRIPTION, I.DESCR) AS ITEM_DESCRIPTION, I.PROC_ITEM_NO, I.MFR_CAT_NO AS MFR_NO, I.LAST_MODIFIED_DT, NVL(LOCATION_ITEM.ALT_IMGLNK, I.IMGLNK) AS IMAGEPATH, LOCATION_ITEM.LOCATION_ID, LOCATION.LOCATION_CODE, LOCATION.NAME AS LOCATION_NAME, COMPANY.COMPANY_NO, COMPANY.DESCRIPTION AS COMPANY_NAME, M.NAME AS MANUFACTURER_NAME, M.MFG_DIV AS MANUFACTURER_DIV, M.MFG_CODE AS MANUFACTURER_CODE, NVL(IS1.NUMBER_OF_TRAYLISTS, 0) AS NUMBER_OF_TRAYLISTS, NVL(IS2.QUANTITY_IN_SERVICE, 0) AS QUANTITY_IN_SERVICE FROM LOCAL_ITEM_VW I, LOCATION_ITEM, LOCATION, COMPANY, MFGR M, ( SELECT ITEM_ID, SOURCE_LOCATION_NO, COUNT(DISTINCT ITEM_ON_TRAY_LIST_HELP.TL_ID) NUMBER_OF_TRAYLISTS FROM ITEM_ON_TRAY_LIST_HELP GROUP BY ITEM_ID, SOURCE_LOCATION_NO) IS1, ( SELECT ITEM_ID, SOURCE_LOCATION_NO, SUM(ITEM_ON_TRAY_LIST_HELP.QTY) QUANTITY_IN_SERVICE FROM ITEM_ON_TRAY_LIST_HELP, TRAY WHERE ITEM_ON_TRAY_LIST_HELP.TL_NO = TRAY.TL_NO GROUP BY ITEM_ID, SOURCE_LOCATION_NO) IS2 WHERE LOCATION_ITEM.ITEM_ID = I.ITEM_ID AND LOCATION.LOCATION_ID = LOCATION_ITEM.LOCATION_ID AND LOCATION.COMPANY_NO = COMPANY.COMPANY_NO AND LOCATION_ITEM.ITEM_ID = IS1.ITEM_ID (+) AND LOCATION_ITEM.LOCATION_ID = IS1.SOURCE_LOCATION_NO (+) AND LOCATION_ITEM.ITEM_ID = IS2.ITEM_ID (+) AND LOCATION_ITEM.LOCATION_ID = IS2.SOURCE_LOCATION_NO (+) AND I.MFR_ID = M.MFR_ID (+) AND LOCATION_ITEM.STATUS = 'A'
 
Possibly Referenced Tables/Views:


Close relationships: