Your question is Stored Procedures vs Functions. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Explain the key differences between stored procedures and functions in SQL.
SELECTUse PostgreSQL behavior as your main reference, and mention where other databases (such as SQL Server) differ. There is no query to submit.