title: Query Optimization (Function Vs SubQuery)
body: <p>In MYSQL Is it better to use function(included that subquery) in a store procedure instead of direct writing subquery, does it make any difference or is it just for code reuse? </p>