View lawprod.MSCM.OPERATOR_ACTIVITY_POU 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
USER_ID number 22
USERS.USER_ID Implied Constraint R
START_TIME varchar2 18  √  null
END_TIME varchar2 18  √  null
COMPANY_NO number 22  √  null
LOCATION_CODE varchar2 5  √  null
NAME varchar2 50  √  null
PULL_QTY number 22  √  null
RETURN_QTY number 22  √  null
DESCRIPTION varchar2 50  √  null
ACTION varchar2 10  √  null
DURATION number 9,2  √  null

Analyzed at Wed May 18 12:10 CDT 2011

View Definition:
SELECT AL.USER_ID, TO_CHAR(AL.START_TIME,'DD-MON-YY HH24:MI:SS') AS START_TIME, TO_CHAR(AL.END_TIME,'DD-MON-YY HH24:MI:SS') AS END_TIME, (SELECT L.COMPANY_NO FROM LOCATION L WHERE AL.SOURCE_LOCATION_ID = L.LOCATION_ID) COMPANY_NO, (SELECT L.LOCATION_CODE FROM LOCATION L WHERE AL.SOURCE_LOCATION_ID = L.LOCATION_ID) LOCATION_CODE, (SELECT L.NAME FROM LOCATION L WHERE AL.SOURCE_LOCATION_ID = L.LOCATION_ID) NAME, (SELECT A.QUANTITY FROM ACTIVITY_LOG A WHERE AL.ACTIVITY_LOG_ID = A.ACTIVITY_LOG_ID AND (A.ACTIVITY_TYPE = 400 OR A.ACTIVITY_TYPE = 402 OR A.ACTIVITY_TYPE = 410 OR A.ACTIVITY_TYPE = 420)) PULL_QTY, (SELECT A.QUANTITY FROM ACTIVITY_LOG A WHERE AL.ACTIVITY_LOG_ID = A.ACTIVITY_LOG_ID AND (A.ACTIVITY_TYPE = 401 OR A.ACTIVITY_TYPE = 411)) RETURN_QTY, AT.DESCRIPTION, CASE WHEN (AT.ACTIVITY_TYPE = 400) OR (AT.ACTIVITY_TYPE = 401) OR (AT.ACTIVITY_TYPE = 410) OR (AT.ACTIVITY_TYPE = 411) OR (AT.ACTIVITY_TYPE = 420) THEN 'Submit' WHEN (AT.ACTIVITY_TYPE = 402) THEN 'Save Draft' END AS ACTION, AL.DURATION FROM ACTIVITY_LOG AL, ACTIVITY_TYPE AT WHERE AL.ACTIVITY_TYPE = AT.ACTIVITY_TYPE AND AT.MODULE = 'POU'
 
Possibly Referenced Tables/Views:


Close relationships: