Complete the code to start creating a stored function named 'getSquare'.
CREATE FUNCTION getSquare(num INT) RETURNS INT [1]The BEGIN keyword starts the body of the stored function in MySQL.
Complete the code to return the square of the input number inside the function.
RETURN [1] * num; ENDThe function should return num * num to calculate the square.
Fix the error in the function declaration by completing the missing keyword.
CREATE FUNCTION getDouble(num INT) RETURNS INT [1] RETURN num * 2; END
The function body must start with BEGIN before statements like RETURN.
Fill both blanks to declare a variable and set it to the square of the input number.
DECLARE result INT; SET result = num [1] num; RETURN [2]; END
Use * to multiply and return the variable result.
Fill all three blanks to create a function that returns the cube of a number.
CREATE FUNCTION getCube(num INT) RETURNS INT [1] DECLARE result INT; SET result = num [2] num [3] num; RETURN result; END
Start the function body with BEGIN and multiply num three times using *.
