I am trying to update fields in my DB, but got stuck with such a simple problem: I want to update just one row in the table with the biggest id number. I would do something like
We can update the record using max() function and maybe it will help for you.
UPDATE MainTable SET [Date] = GETDATE() where [ID] = (SELECT MAX([ID]) FROM MainTable)
It will work the perfect for me.