How to define a function and can be reused and called by other query

Hey Richard,

This post explains how to create reusable functions.