https://sharelearn.net/learn/courses/orl-9781484245484/
Using T-SQL Functions and Summarizing Results