View lawprod.MSCM.OPERATOR_ACTIVITY_CYCLE_C | Generated by SchemaSpy |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Analyzed at Wed May 18 12:10 CDT 2011 |
View Definition:
SELECT (SELECT MIN(EVENT_TIMESTAMP) FROM EVENT_DETAIL WHERE EVENT_HEADER_ID=EH.EVENT_HEADER_ID) FIRST_SCAN, (SELECT MAX(EVENT_TIMESTAMP) FROM EVENT_DETAIL WHERE EVENT_HEADER_ID=EH.EVENT_HEADER_ID) LAST_SCAN, COMPANY_NO, SELECT_ID, (SELECT COUNT(1) FROM EVENT_DETAIL WHERE EVENT_HEADER_ID=EH.EVENT_HEADER_ID) LINE_ITEMS_COUNTED, (SELECT SUM(QUANTITY) FROM EVENT_DETAIL WHERE EVENT_HEADER_ID=EH.EVENT_HEADER_ID AND QUANTITY IS NOT NULL) TOTAL_QTY_COUNTED, USER_ID FROM EVENT_HEADER EH, COUNTFORM CF WHERE CF.COUNTFORM_ID = EH.EVENT_HEADER_GT_01 AND EVENT_TYPE='CYCLE'
Possibly Referenced Tables/Views:
|