https://www.techmixing.com/2011/08/sql-server-functions-introduction.html
SQL Server Functions- An Introduction