WM_FANL_ASMR_VW(SQL View) |
Index Back |
---|---|
Fail Anlys Asset Mtr Read ViewWM Failure Analysis Asset Meter Reading View - level 4 view, used to calculate MMUBF (Mean Meter Units Betw Failure) |
SELECT A.BUSINESS_UNIT , A.WO_ID , A.WO_TASK_ID , A.FAILURE_ID , B.METER_TYPE , B.UNIT_OF_MEASURE AS METER_UOM , B.METER_OPTION , A.FAILURE_DT , CASE WHEN B.READING_DTTM IS NOT NULL THEN B.READING ELSE 0 END , CASE WHEN B.READING_DTTM IS NOT NULL THEN B.CUM_READING ELSE 0 END , %DatePart(B.READING_DTTM) AS READING_DATE , A.BUSINESS_UNIT_AM , A.ASSET_ID , A.ASSET_DESCR30 , A.ASSET_TYPE , A.ASSET_SUBTYPE , A.MFG_ID , A.MODEL , A.IN_SERVICE_DT , CASE WHEN C.ORIG_READING_DT IS NOT NULL THEN C.ORIGINAL_READING ELSE 0 END , CASE WHEN C.ORIG_READING_DT IS NOT NULL THEN C.ORIGIN_CUM_READING ELSE 0 END , C.ORIG_READING_DT FROM PS_WM_FANL_ASST_VW A , PS_WM_FTRK_MTRD_VW B LEFT OUTER JOIN PS_WM_ASST_INMR_VW C ON C.BUSINESS_UNIT_AM = B.BUSINESS_UNIT_AM AND C.ASSET_ID = B.ASSET_ID AND C.METER_TYPE = B.METER_TYPE WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.WO_ID = A.WO_ID AND B.WO_TASK_ID = A.WO_TASK_ID |
# | 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 | READING | Signed Number(15,6) | DECIMAL(13,6) NOT NULL | Reading |
10 | CUM_READING | Signed Number(21,4) | DECIMAL(19,4) NOT NULL | Cumulative Reading |
11 | READING_DATE | Date(10) | DATE | Reading Date |
12 | BUSINESS_UNIT_AM | Character(5) | VARCHAR2(5) NOT NULL |
AM Business Unit
Prompt Table: BUS_UNIT_AM_VW |
13 | ASSET_ID | Character(12) | VARCHAR2(12) NOT NULL |
Asset Identification
Prompt Table: WM_ASSET_VWA |
14 | ASSET_DESCR30 | Character(30) | VARCHAR2(30) NOT NULL | Asset Description |
15 | ASSET_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Asset Type
010=IT Hardware 020=IT Software 040=Equipment 050=Property 060=Fleet 070=Machinery 080=Furniture 090=Facility 100=Intangible 200=Asset Retirement Obligations 999=Other |
16 | ASSET_SUBTYPE | Character(15) | VARCHAR2(15) NOT NULL | Asset Subtype |
17 | MFG_ID | Character(50) | VARCHAR2(50) NOT NULL |
Manufacturer ID
Prompt Table: WM_MANUFACTURER |
18 | MODEL | Character(30) | VARCHAR2(30) NOT NULL |
Model
Prompt Table: WM_WO_MFGMOD_VW |
19 | IN_SERVICE_DT | Date(10) | DATE | In Service Date |
20 | ORIGINAL_READING | Signed Number(15,6) | DECIMAL(13,6) NOT NULL | Initial Reading |
21 | ORIGIN_CUM_READING | Signed Number(21,4) | DECIMAL(19,4) NOT NULL | Initial Cumulative Reading |
22 | ORIG_READING_DT | Date(10) | DATE | Initial Reading Date |