Databases · Free practice
MySQL Stored Procedures
A five-part series on one database, myq: departments, employees and drivers. Build and populate it, then write stored procedures with no parameters, one parameter, and several parameters with variables and IF. Based on lessons by Dr. J. Ubaldo Quevedo. Each part has unlimited practice.

Part 1: Creating and Populating a Database
constraints: SET, NOT NULL, CHECK, FOREIGN KEY, UNIQUE · Accepted or rejected? · How many rows?

Part 2: Other Ways to Populate a Database
result grid, CSV import wizard, SQL scripts · Predict the import · Choose the best method

Part 3: A Stored Procedure with No Parameters
CREATE PROCEDURE, DELIMITER, CALL · Predict the CALL · Put the script in order

Part 4: A Stored Procedure with One Parameter
IN parameters · Predict the result · Which one works?

Part 5: Multiple Parameters, Variables and IF
IN/OUT, DECLARE, SELECT INTO, IF · Predict @answer · Complete the procedure