Home Forums SQL Server 2012 SQL 2012 - General Creating scalar functions in tsql RE: Creating scalar functions in tsql
HanShi
SSC-Dedicated
Points: 33506
More actions
September 2, 2013 at 5:57 am
#1646727
Take a look at the article by Paul White about APPLY. Half way the article he builds a function from an excisting query. You'll also get other interesting information about using such a function.
http://www.sqlservercentral.com/articles/APPLY/69953/