DROP TABLE #table
CREATE TABLE #table(CompanyID VARCHAR(20),BillNo VARCHAR(40))
UPDATE dbo.SD_Inv_MoveReqMaster SET WmsStatus=1
OUTPUT Inserted.CompanyID,Inserted.BillNo INTO #table(CompanyID,BillNo)
WHERE CompanyID='L102' AND BillNo='IR190311L10236-003' AND WmsStatus=1 AND BillStatus=4
SELECT * FROM #table