I got the error
Cannot modify table or view used in subquery
while executing this query.
Here raw_str
in my_table_view
has reference to raw_str
in my_table
.
Please suggest how to update the 'flag'.
update my_table
set flag = 'X'
where raw_str = (
select raw_str from my_table_view
where a_num in
(
select num_id from num_table
where state not in (0, 1, 7, 99, 10, 11, 20, 21)
)
)
Thanks in advance.