Is it possible to create a calculated field using the alternate column names?
I’m getting an “PROJECTED_OUTPROC_COST - Invalid Identifier” error. Here’s my statement from Oracle 9
SELECT
JOB_ID,
CUSTOMER_NO,
(Std_Dept_Cost + Std_RawMtl_Cost +
Outside_Processing_Cost +
(Std_RawMtl_Cost *0.04 +
Outside_Processing_Cost * 0.11) ) Total_Std_Cost,
(case
when Actual_Dept_Cost >= Std_Dept_Cost
then Actual_Dept_Cost
else Std_Dept_Cost
end) Projected_Dept_Cost,
(case
when actual_rawmtl_Cost >= Std_RawMtl_Cost
then actual_RawMtl_Cost
else std_RawMtl_Cost
end) Projected_RawMtl_Cost,
(case
when actual_OutProcessing_Cost >= Outside_Processing_Cost then
Actual_Outprocessing_Cost
else Outside_Processing_Cost
end) Projected_OutProc_Cost,
(Projected_Dept_Cost + Projected_RawMtl_Cost +
Projected_OutProc_Cost +(Projected_RawMtl_Cost * 0.04 +
Projected_OutProc_Cost * 0.11)) Total_Projected_Cost,
ORDER_LINE_VALUE
FROM
MyTable
WHERE
CONTRACT = '&Site' and
(STATUS <> 'Invoiced/Closed' AND
STATUS <> 'Cancelled')
I’m getting an “PROJECTED_OUTPROC_COST - Invalid Identifier” error. Here’s my statement from Oracle 9
SELECT
JOB_ID,
CUSTOMER_NO,
(Std_Dept_Cost + Std_RawMtl_Cost +
Outside_Processing_Cost +
(Std_RawMtl_Cost *0.04 +
Outside_Processing_Cost * 0.11) ) Total_Std_Cost,
(case
when Actual_Dept_Cost >= Std_Dept_Cost
then Actual_Dept_Cost
else Std_Dept_Cost
end) Projected_Dept_Cost,
(case
when actual_rawmtl_Cost >= Std_RawMtl_Cost
then actual_RawMtl_Cost
else std_RawMtl_Cost
end) Projected_RawMtl_Cost,
(case
when actual_OutProcessing_Cost >= Outside_Processing_Cost then
Actual_Outprocessing_Cost
else Outside_Processing_Cost
end) Projected_OutProc_Cost,
(Projected_Dept_Cost + Projected_RawMtl_Cost +
Projected_OutProc_Cost +(Projected_RawMtl_Cost * 0.04 +
Projected_OutProc_Cost * 0.11)) Total_Projected_Cost,
ORDER_LINE_VALUE
FROM
MyTable
WHERE
CONTRACT = '&Site' and
(STATUS <> 'Invoiced/Closed' AND
STATUS <> 'Cancelled')