if we have an UPDATE with a sub-SELECT, can the subquery execute concurrently or not under READ COMMITTED isolation?
In other words, is there a race condition present in the following:
update list set [state] = 'active'
where
id = (select top 1 id from list where [state] = 'ready' order by id)
In yet other words, if many connections are simulataneously executing this SQL, can we guarantee that one row is in fact updated per invocation (so long as rows in 'ready' state exist)?