call a user defined function in sql. There are any references about call a user defined function in sql in here. you can look below.