EG_RTG_AUEG2_VW

(SQL View)
Index Back

ECO ERTG Time stamped audit VW

CN#EG750-4.0 dbe (Engineering Routings) - New view. CN# EN800-3.0, 02/2/99 anna added rtgcode in the view defn.

SELECT a.business_unit , a.inv_item_id , a.rtg_type , a.rtg_code , a.eg_datetime , a.oprid FROM PS_EG_RTG_AUDIT a WHERE (copy_direction='ME' OR copy_direction = 'EE') AND a.eg_datetime = ( SELECT MAX(eg_datetime) FROM PS_EG_RTG_AUDIT WHERE business_unit = a.business_unit AND inv_item_id=a.inv_item_id AND rtg_type = a.rtg_type AND rtg_code = a.rtg_code AND (copy_direction='ME' OR copy_direction = 'EE'))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 RTG_TYPE Character(2) VARCHAR2(2) NOT NULL Routing Type
PR=Production
RW=Rework
TD=Teardown
4 RTG_CODE Number(2,0) SMALLINT NOT NULL Routing Code
5 EG_DATETIME DateTime(26) TIMESTAMP NOT NULL Copy Date / Time
6 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).