I have a query that will present a list of customers to be anonomized:
select cu_number into #_t
from customer
where cu_first_name is not null
I want to update last_name to " 'Anonomized' + sequence " and try this:
update customer
set cu_last_name = 'Anonomized' + convert(varchar, cu_number)
where cu_number = (select * from #_t);
I get the following error, and can't seem to find a suitable way around this:
"Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."
Anyone with an idea on how to improve the subquery?
/Andreas