PC_HR_RT_JOB_VW(SQL View) |
Index Back |
---|---|
Effective Jobcode Hourly RatesView of jobcode hourly rates by Business Unit. |
SELECT A.BUSINESS_UNIT , B.JOBCODE , B.CURRENCY_CD , A.RT_TYPE , A.UOM_HOURS , %Round((%DecDiv(B.COST_RATE, C.CONVERSION_RATE)), 3) , %Round((%DecDiv(B.BILL_RATE, C.CONVERSION_RATE)), 3) FROM PS_BUS_UNIT_TBL_PC A , PS_PC_RATE_JOBC B , PS_UNITS_CVT_TBL C , PS_SET_CNTRL_REC CNTRL WHERE CNTRL.RECNAME = 'PC_RATE_JOBC' AND CNTRL.SETCNTRLVALUE = A.BUSINESS_UNIT AND B.SETID = CNTRL.SETID AND B.UNIT_OF_MEASURE = C.UNIT_OF_MEASURE AND A.UOM_HOURS = C.UNIT_OF_MEASURE_TO AND C.CONVERSION_RATE <> 0 AND B.EFFDT = ( SELECT MAX(X.EFFDT) FROM PS_PC_RATE_JOBC X WHERE B.SETID = X.SETID AND B.JOBCODE = X.JOBCODE AND X.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL | Job Code |
3 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
4 | RT_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical. |
5 | UOM_HOURS | Character(3) | VARCHAR2(3) NOT NULL | The Unit of Measure that represents Hours. |
6 | COST_RATE | Number(27,3) | DECIMAL(26,3) NOT NULL | Cost Rate |
7 | BILL_RATE | Number(27,3) | DECIMAL(26,3) NOT NULL | Billing Rate |