Suppose I have the following long-running query
UPDATE [Table1]
SET [Col1] = 'some value'
WHERE [Col2] = -- some clause which selects thousands of rows
and suppose the following query is executed while the above query is running
SELECT *
FROM [Table1]
Does the first query prevent the second query from running until the first query is done? If so, does the first query prevent the second query from running on all of the rows or just the rows involved in the WHERE clause?
EDIT:
Suppose the second query is
SELECT [Col1], [Col2]
FROM [Table1]
WHERE [Col2] -- some clause whose matching elements overlap those from
-- the clause in the first query and which has additional matching elements