stored procedure factorial – Query Examples