WM_INPCD_WH2_VW(SQL View) |
Index Back |
---|---|
Inspection Code Where-Used Vw2Inspection Codes referenced by Inspection Plans' data collection activities |
SELECT A.SETID , A.INSPECTION_CODE , B.WO_TEMPLATE_ID , B.DESCR50 , B.ASSET_TYPE , B.ASSET_SUBTYPE , B.MFG_ID , B.MODEL FROM PS_WM_WO_INSPCD_VW A , PS_WM_WO_TMPLT_HDR B WHERE B.SETID = A.SETID AND B.WO_TEMPLATE_TYPE = '3' AND (EXISTS ( SELECT 'X' FROM PS_WM_WO_INSPL_EFF EFF WHERE EFF.SETID = B.SETID AND EFF.WO_TEMPLATE_ID = B.WO_TEMPLATE_ID AND EFF.INSP_RSLT_STAT_CD = A.INSPECTION_CODE) OR EXISTS ( SELECT 'X' FROM PS_WM_WO_INSPL_COL COL WHERE COL.SETID = B.SETID AND COL.WO_TEMPLATE_ID = B.WO_TEMPLATE_ID AND COL.INSPECTION_CODE = A.INSPECTION_CODE) OR EXISTS ( SELECT 'X' FROM PS_WM_WO_INSPL_EVL EVL WHERE EVL.SETID = B.SETID AND EVL.WO_TEMPLATE_ID = B.WO_TEMPLATE_ID AND EVL.INSPECTION_CODE = A.INSPECTION_CODE)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: OPR_DEF_TBL_FS.SETID Prompt Table: SP_SETID_NONVW |
2 | INSPECTION_CODE | Character(20) | VARCHAR2(20) NOT NULL | Inspection Code |
3 | WO_TEMPLATE_ID | Character(25) | VARCHAR2(25) NOT NULL | Work Order Task/Job Template ID |
4 | DESCR50 | Character(50) | VARCHAR2(50) NOT NULL | Description of length 50 |
5 | 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 |
6 | ASSET_SUBTYPE | Character(15) | VARCHAR2(15) NOT NULL | Asset Subtype |
7 | MFG_ID | Character(50) | VARCHAR2(50) NOT NULL | Manufacturer ID |
8 | MODEL | Character(30) | VARCHAR2(30) NOT NULL | Model |