I want to update about 150 rows in a table.
I cant understand why this isnt working I tryed writing the update in 2 ways both gave the same error see below
i have entered both queries in the code block
update MyTable set thisfield = 'thisText' where thatField = 'thatText')
Msg 512, Level 16, State 1, Procedure COMMISIONTYPE, Line 4
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
update MyTable set thisfield = 'thisText' where thatField = 'thatText'
update MyTable set thisfield = 'thisText'
where thisRowid in(
select thisRowid from MyTable
where thatField = 'thatText')