Direction: Choose the correct option
Q1.
What is a stored procedure?
Direction: Choose the correct option
Q2.
CREATE PROCEDURE GetAllEmployees() BEGIN SELECT * FROM employees; END;What does this do?Direction: Choose the correct option
Q3.
CREATE PROCEDURE GetEmpByDept(IN dept_id INT) BEGIN SELECT * FROM employees WHERE department_id = dept_id; END;What is dept_id?Direction: Choose the correct option
Q4.
CREATE PROCEDURE GetEmpCount(OUT total INT) BEGIN SELECT COUNT(*) INTO total FROM employees; END;What does OUT do?Direction: Choose the correct option
Q5.
How do you execute a stored procedure?
