There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
Table name is Orders
and notice the where clause in the function
where orderid=11077
Jay
declare @colname varchar(55)
declare @ordpos int
set @ordpos=6
select @colname=column_name from INFORMATION_SCHEMA.Columns
where table_name='orders'
and ordinal_position=@ordpos
exec ('update orders
set '+@colname+'=getdate() where orderid=11077')