WM_FANL_PVMR_VW

(SQL View)
Index Back

Fail Anlys Prev Fail Mtr Rd Vw

WM Failure Analysis Previous Failure Meter Reading View - level 5 view, used to calculate MMUBF (Mean Meter Units Betw Failure) - ref level 4 view WM_FANL_ASMR_VW

SELECT A.BUSINESS_UNIT , A.WO_ID , A.WO_TASK_ID , A.FAILURE_ID , A.METER_TYPE , A.METER_UOM , A.METER_OPTION , A.FAILURE_DT , A.BUSINESS_UNIT_AM , A.ASSET_ID , A.IN_SERVICE_DT , A.ORIGINAL_READING , A.ORIGIN_CUM_READING , A.ORIG_READING_DT , B.BUSINESS_UNIT AS BUSINESS_UNIT_FROM , B.WO_ID AS WO_ID_FROM , B.WO_TASK_ID AS WO_TASK_ID_FROM , B.FAILURE_ID AS FAILURE_ID_FROM , B.FAILURE_DT AS PREV_FAILURE_DT , B.READING AS PRIOR_READING , B.CUM_READING AS PRIOR_CUM_READING , B.READING_DATE AS PRIOR_READING_DT FROM PS_WM_FANL_ASMR_VW A , PS_WM_FANL_ASMR_VW B WHERE B.BUSINESS_UNIT_AM = A.BUSINESS_UNIT_AM AND B.ASSET_ID = A.ASSET_ID AND B.METER_TYPE = A.METER_TYPE AND B.FAILURE_DT = ( SELECT MAX(I.FAILURE_DT) FROM PS_WM_FANL_ASMR_VW I WHERE I.BUSINESS_UNIT = B.BUSINESS_UNIT AND I.WO_ID = B.WO_ID AND I.WO_TASK_ID = B.WO_TASK_ID AND I.FAILURE_ID = B.FAILURE_ID AND I.METER_TYPE = B.METER_TYPE AND I.FAILURE_DT < A.FAILURE_DT AND I.FAILURE_DT > A.IN_SERVICE_DT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 WO_ID Character(10) VARCHAR2(10) NOT NULL Work Order Identification
3 WO_TASK_ID Number(5,0) INTEGER NOT NULL Task Number
4 FAILURE_ID Character(10) VARCHAR2(10) NOT NULL Failure ID
5 METER_TYPE Character(30) VARCHAR2(30) NOT NULL Meter Type
6 METER_UOM Character(3) VARCHAR2(3) NOT NULL Meter Unit of Measure

Prompt Table: UNITS_TBL

7 METER_OPTION Character(1) VARCHAR2(1) NOT NULL Meter Option
D=Decreasing
I=Increasing
R=Tolerance Range
8 FAILURE_DT Date(10) DATE Failure date
9 BUSINESS_UNIT_AM Character(5) VARCHAR2(5) NOT NULL AM Business Unit

Prompt Table: BUS_UNIT_AM_VW

10 ASSET_ID Character(12) VARCHAR2(12) NOT NULL Asset Identification

Prompt Table: WM_ASSET_VWA

11 IN_SERVICE_DT Date(10) DATE In Service Date
12 ORIGINAL_READING Signed Number(15,6) DECIMAL(13,6) NOT NULL Initial Reading
13 ORIGIN_CUM_READING Signed Number(21,4) DECIMAL(19,4) NOT NULL Initial Cumulative Reading
14 ORIG_READING_DT Date(10) DATE Initial Reading Date
15 BUSINESS_UNIT_FROM Character(5) VARCHAR2(5) NOT NULL Business Unit From
16 WO_ID_FROM Character(10) VARCHAR2(10) NOT NULL Work Order ID From
17 WO_TASK_ID_FROM Number(5,0) INTEGER NOT NULL From Task ID
18 FAILURE_ID_FROM Character(10) VARCHAR2(10) NOT NULL From Failure ID
19 PREV_FAILURE_DT Date(10) DATE Previous Failure Date
20 PRIOR_READING Signed Number(15,6) DECIMAL(13,6) NOT NULL Prior Reading
21 PRIOR_CUM_READING Signed Number(21,4) DECIMAL(19,4) NOT NULL Prior Cumulative Reading
22 PRIOR_READING_DT Date(10) DATE Prior Reading Date