In some dialects, user-defined functions can contain SQL only content, in case of which inlining such a function into a calling query is much simpler for the ...