View lawprod.MSCM.CASE_CART_HISTORY_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
CASECART_NO varchar2 8
CASECART.CASECART_NO Implied Constraint R
ASSM_DATE date 7
ACTIVITY number 22
COMPANY_NO number 4
COMPANY.COMPANY_NO Implied Constraint R
DESCRIPTION varchar2 30  √  null
LOCATION_ID number 22
LOCATION.LOCATION_ID Implied Constraint R
LOCATION_CODE varchar2 5
NAME varchar2 50
LAST_NAME varchar2 55  √  null
FIRST_NAME varchar2 55  √  null
CASECART_ASSEMBLY_ACTIVITY varchar2 17  √  null
PICK_LIST_NO varchar2 6  √  null

Analyzed at Wed May 18 12:10 CDT 2011

View Definition:
SELECT CASECART.CASECART_NO, CASECART_ASSEMBLY_LOG.ASSM_DATE, CASECART_ASSEMBLY_LOG.ACTIVITY, COMPANY.COMPANY_NO, COMPANY.DESCRIPTION, LOCATION.LOCATION_ID, LOCATION.LOCATION_CODE, LOCATION.NAME, USERS.LAST_NAME, USERS.FIRST_NAME, DECODE(CASECART_ASSEMBLY_LOG.ACTIVITY , -1, 'NEW', 0, 'STARTDECONTAM', 1, 'SCANADDCASECART', 2, 'SCANADDTRAY', 3, 'SCANREMOVETRAY', 4, 'SCANCLEARCASECART', 5, 'ENDDECONTAM', 6, 'STARTPICKING', 7, 'ENDPICKING', 8, 'TRANSFER', NULL) CASECART_ASSEMBLY_ACTIVITY, ( SELECT MIN(PICKLIST_NO) FROM PICK WHERE PICK.CARTSET_ASSM_NO = CASECART_ASSEMBLY.CARTSET_ASSM_NO) PICK_LIST_NO FROM CASECART, CASECART_ASSEMBLY, CASECART_ASSEMBLY_LOG, USERS, LOCATION, COMPANY WHERE CASECART.CASECART_NO = CASECART_ASSEMBLY.CASECART_NO AND CASECART_ASSEMBLY.CARTSET_ASSM_NO = CASECART_ASSEMBLY_LOG.CARTSET_ASSM_NO AND CASECART_ASSEMBLY_LOG.ACTIVITY IN (0,6,8) AND CASECART_ASSEMBLY_LOG.USER_ID = USERS.USER_ID AND CASECART_ASSEMBLY_LOG.LOC_NO = LOCATION.LOCATION_ID AND LOCATION.COMPANY_NO = COMPANY.COMPANY_NO
 
Possibly Referenced Tables/Views:


Close relationships: