An implementation of the Jaro Winkler distance algorithm in Transact SQL
I've been wondering for months about how to implement this algorithm in Transact SQL, https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance
How can it be done?