Skip to content

Procedure or function

You need routine logic that can be called from inside a SELECT statement, like this:

sql SELECT id, name, grade_for(score) FROM submissions;

Should grade_for be a stored procedure or a function?