I have a view that is something like the following:
i.e. Subsequent fields are calculated based on the value of earlier calculated fields.
Is there any obvious way to do...
Thanks.
Code:
SELECT
(Field1 * 10) AS CalcField1,
(Field1 * 10) + Field2 AS CalcField2,
(Field1 * 10) + Field2 - 2 AS CalcField3
FROM
TABLE
Is there any obvious way to do...
Code:
SELECT
(Field1 * 10) AS CalcField1,
CalcField1 + Field2 AS CalcField2,
CalcField2 - 2 AS CalcField3
FROM
TABLE