Say I want to add breakfast, lunch and dinner every day with random menus
CREATE TABLE meals
(
meal_type VARCHAR, -- CustomList('breakfast', 'lunch', 'dinner')
meal_time TIMESTAMP, -- Date
menu VARCHAR -- sentences
)
My current strategy case row%3
… for the meal type and this + day(row/3)
for my date. my actual problem requires about 17 different required events so this is getting tedious.
Is there a sort of composite schema which allows the multiple rows to be created based on a single random field?