SF_CQTYNOTRC_VW(SQL View) |
Index Back |
---|---|
CQTY records not in trc_usagemmt Created this view for use in Splits with genealogy |
SELECT a.business_unit , a.production_id , a.component_id , a.op_sequence , a.mg_orig_comp_id , a.qty_code , a.inv_lot_id , a.serial_id , a.qty_base , a.dt_timestamp , a.process_instance FROM ps_sf_comp_qty a WHERE NOT EXISTS( SELECT 'x' FROM PS_SF_TRC_USAG b WHERE a.business_unit = b.business_unit AND a.production_id = b.production_id AND a.component_id = b.component_id AND a.op_sequence = b.op_sequence AND a.qty_code = b.qty_code AND a.mg_orig_comp_id = b.mg_orig_comp_id AND a.inv_lot_id = b.comp_lot_id AND a.serial_id = b.comp_serial_id ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
3 | COMPONENT_ID | Character(18) | VARCHAR2(18) NOT NULL | 04/10/00 (Internet Architecture) SCC: Uppercase label Id. |
4 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
5 | MG_ORIG_COMP_ID | Character(18) | VARCHAR2(18) NOT NULL | original component ID |
6 | QTY_CODE | Character(3) | VARCHAR2(3) NOT NULL |
Per
ASY=Assembly ORD=Order |
7 | INV_LOT_ID | Character(15) | VARCHAR2(15) NOT NULL | Lot ID |
8 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
9 | QTY_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Base Quantity |
10 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
11 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |