I want to add a dummy column in CTE.
Later I want to update the value of dummy column using update statement.
I am getting Update or Insert of view or function failed because it contains a derived or constant field.
The CTE is
with CTE
AS
(
Select A.a, cast(NULL as varchar(20)) as F // cast expression is failed attempt to add dummy column.
FROM ABC A
)
I am getting exception after updating F field using update statement.