5

To start off, an updatable CTE, derived table or view may be the target of an UPDATE directly, even if it has multiple base tables, as long as all columns are from the same source table.
But they cannot be the target of a DELETE, even if columns from only one table are selected.
Msg 4405 Level 16...