I have this @variable table with an initial row. I'd like to update the following rows based on that first row.
DECLARE @varTable1 Table
(
[id] [int],
[field1] [decimal](18,4)
)
INSERT INTO @varTable1
VALUES
(1,20),
(1,NULL),
(1,NULL),
(1,NULL)
SELECT * FROM @varTable1
Let's just say I want to multiply field1 by 2. So the expected values following inital row would be
1 20
2 40
3 60
4 80
