The original idea for my function was to have the date in my schedule table be compared to today's date in an if statement, and if the date in the table is past the date of today it would move the row of data from the schedule table to the past_shows table.
this is what i have tried so far,
DELIMITER //
CREATE FUNCTION pastShow (
showID INT,
date_time DATETIME
)
BEGIN
// if condition
IF (date_time > DATE)
THEN
INSERT showID, date_time INTO past_shows From schedule
END IF;
END; //
DELIMITER ;