begin tran
select balance
from account holdlock
where acct_number = 25
--Beware if you go to lunch now, no one can update rows on the page or row that holds this row!.
update account
set balance = balance + 50
where acct_number = 25
--This is intent exclusive table lock Update page lock on data page followed by exclusive page lock on data
--page OR Intent exclusive table lock Update row lock on data page followed by exclusive row lock on data page
--No one can read rows on the page that holds this row or No one can read this row until you do a commit tran!
commit tran