Stored Procedures and Functions in SQL

Evaluate your skill in writing reusable database routines.

1. What is a key difference between a SQL stored procedure and a SQL function regarding return values?
2. Which of the following are true characteristics of SQL stored procedures?
3. A SQL function is allowed to perform an INSERT operation on a table.
4. What is the mandatory clause in a SQL function definition that specifies the return data type?
5. Which SQL construct can be invoked directly within a SELECT statement?
6. Select all valid reasons to use a stored procedure instead of a function.
7. SQL functions can declare OUT parameters to return values to the caller.
8. In MySQL, what statement is used to create a stored procedure? (Start with 'CREATE ...')
9. What is the primary purpose of using stored procedures and functions?
10. Which of the following are common features of both stored procedures and functions?
11. Stored procedures are precompiled, which can improve execution performance compared to ad-hoc queries.
12. In SQL Server, what keyword is used to execute a stored procedure?
13. Which SQL construct is required to return a value to the caller?
14. Select all limitations of SQL functions compared to stored procedures.
15. A stored procedure can call another stored procedure within its definition.
Answered 0 of 0 — 0 correct