how to create sql function with two parameters

join shbcf.ru