More conditions

Report a typo

Suppose there is a table hats with the following procedure created for it:

CREATE PROCEDURE take_hat()
BEGIN
    IF false THEN
        INSERT INTO hats (items) VALUES ('red');
    ELSEIF true AND false THEN
        INSERT INTO hats (items) VALUES ('green');
    ElSEIF true OR false THEN
        INSERT INTO hats (items) VALUES ('yellow');
    ElSEIF true THEN
        INSERT INTO hats (items) VALUES ('brown');
    ELSE
        INSERT INTO hats (items) VALUES ('white');
    END IF;
    IF true THEN
        INSERT INTO hats (items)
        VALUES ('black');
    END IF;
END;

What result will be in the table, if the CALL take_hat(); procedure is called?

Select one option from the list
___

Create a free account to access the full topic