Mysql Function With Query – Query Examples