Direction: Choose the correct option
Q1.
What's the difference between function and procedure?
Direction: Choose the correct option
Q2.
CREATE FUNCTION AnnualSalary(monthly DECIMAL) RETURNS DECIMAL DETERMINISTIC BEGIN RETURN monthly * 12; END;What does DETERMINISTIC mean?Direction: Choose the correct option
Q3.
SELECT name, salary, AnnualSalary(salary) FROM employees;Where is the function used?Direction: Choose the correct option
Q4.
CREATE FUNCTION CalculateBonus(salary DECIMAL, percentage INT) RETURNS DECIMAL BEGIN RETURN salary * percentage / 100; END;How many parameters does this function take?Direction: Choose the correct option
Q5.
How do you remove a function?
