The code for Create_GetCustomerLevel2.sql is: DROP PROCEDURE IF EXISTS GetCustomerLevel2; DELIMITER $$ CREATE PROCEDURE GetCustomerLevel2( IN pCustomerNumber INT, OUT pCustomerLevel VARCHAR(20)) BEGIN DECLARE credit DECIMAL(10,2) DEFAULT 0; #SET pCustomerLevel = 'LEAD'; # Sets a default value. SELECT creditLimit INTO credit FROM customers WHERE customerNumber = pCustomerNumber; IF credit > 50000 THEN SET pCustomerLevel = 'PLATINUM'; ELSE SET pCustomerLevel = 'NOT PLATINUM'; END IF; END$$ DELIMITER ; CALL GetCustomerLevel2(141, @level); SELECT @level; CALL GetCustomerLevel2(103, @level); SELECT @level;