SET LOCK_TIMEOUT: Specifies the number of milliseconds a statement waits for a lock to be released.
The behavior of NOLOCK and NOWAIT is absolutely opposite to each other but there is no guarantee to get the
valid answer in either of them.
NOWAIT will return ERROR if the original table has (transaction) locked on it.
NOLOCK will read the data irrespective of the (transaction) lock on it. It won’t give ERROR.