Let SQL Do All the Work: User Defined Functions
thenewstack.io