Sql Create Stored Procedure With Return Value Of A Function