Viewing 2 posts - 1 through 2 (of 2 total)
Hi,
Thanks for giving reply.I just changed like below.
BEGIN TRAN
DECLARE @DEPTNBR BIGINT
SELECT @DEPTNBR = DEPTNBR
FROM DEPARTMENT_DETAILS WITH (UPDLOCK,READPAST)
WHERE STATUS= 1
UPDATE DEPARTMENT_DETAILS SET STATUS= 0 WHERE DEPTNBR = @DEPTNBR...
March 11, 2015 at 3:27 am
#1783169
I need to retrieve the active department uniquely to each user (i.e. departments whose status is 1).After retrieval department number (DEPTNBR) in the select query, i am doing status update...
March 11, 2015 at 2:16 am
#1783147