Thomson Reuters interview question

What is the difference between SQL Functions and a Stored Procedure?