He wasn't clear on his intent.
What he wants to do is to change the designated Job Queue field in the Version Detail of several dozen batch versions. As far as I know, that information is saved in a BLOB field of F983051, and is impossible to change with an SQL query.
Greg, that query is running over the submitted jobs list, and not changing the version detail.