Windows Function Syntax Sql Update Query