Build a reusable function that generates that part of the query.
Edit: I updated the name to reflect the actual desired effect.
Build a reusable function that generates that part of the query.
Edit: I updated the name to reflect the actual desired effect.