View lawprod.MSCM.TRANSFER_DETAILS_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
TRANSFER_ID number 22
TRANSFER_NO varchar2 20
TRANSFER.TRANSFER_NO Implied Constraint R
USER_ID number 22
USERS.USER_ID Implied Constraint R
TO_LOC_NO number 22  √  null
END_TIME date 7
TRANSFER_LOCATION_CODE varchar2 5
TRANSFER_LOCATION_NAME varchar2 50
TRANSFER_FACILITY_NUMBER number 4
TRANSFER_USER_FIRST_NAME varchar2 55  √  null
TRANSFER_USER_LAST_NAME varchar2 55  √  null
NUM_CASECARTS number 22  √  null
NUM_TRAYS number 22  √  null

Analyzed at Wed May 18 12:10 CDT 2011

View Definition:
SELECT TRANSFER.TRANSFER_ID, TRANSFER.TRANSFER_NO, TRANSFER.USER_ID, TRANSFER.TO_LOC_NO, TRANSFER.END_TIME, LOCATION.LOCATION_CODE AS TRANSFER_LOCATION_CODE, LOCATION.NAME AS TRANSFER_LOCATION_NAME, LOCATION.COMPANY_NO AS TRANSFER_FACILITY_NUMBER, USERS.FIRST_NAME AS TRANSFER_USER_FIRST_NAME, USERS.LAST_NAME AS TRANSFER_USER_LAST_NAME, DECODE(TRANSFER.CARTSET_ASSM_NO, NULL, 0, 1 ) AS NUM_CASECARTS, DECODE(TRANSFER.TS_NO, NULL, ( SELECT COUNT(*) FROM CASECART_ITEMS WHERE CARTSET_ASSM_NO = TRANSFER.CARTSET_ASSM_NO AND ACT_DATE <= TRANSFER.END_TIME ), 1 ) AS NUM_TRAYS FROM TRANSFER, USERS, LOCATION WHERE TRANSFER.USER_ID = USERS.USER_ID AND TRANSFER.TO_LOC_NO = LOCATION.LOCATION_ID AND TRANSFER.BATCH_NO IS NULL
 
Possibly Referenced Tables/Views:


Close relationships: