I want to be able to create schedules that can be executed based on a fixed date, repeated daily, repeated on a particular day of the week, repeated on a particular month of
I think the accepted answer is much more complicated than it needs to be. This can be done with a single table like this:
Schedules
- Id :int
- Greetingid :int
- Startdate :date
- Frequencytype :char(1)
- Frequencyinterval :int
- Timeofday :time
Frequencytype would be one of the following values
Frequencyinterval would be numeric and the meaning of the value depends on the value of frequencytype