Topic: How to write function?
The request answers on a question:
In mssql 2005 there is a type table
[name datetime data]
It is necessary to take time at an o'clock from this table value data lines with name ' xxx'
And to interpose into the same table a new line with name ' yyy ' with taken earlier data and leaking datetime
I understand normal requests as to do, and that something to something to appropriate - never faced.