Difference between a Procudure and Function
A FUNCTION is always returns a value using the return statement. A functions can be useed in select or update or delete statement while procedure can't.
A PROCEDURE may return one or more values using the OUT parameteror may not return at all.