Creating an automated process based on set dates
Posted on 2005-05-09
I would like to create an automated process for an online show.
I created a stored procedure that would allow me to insert the shows and update.
The admin first adds the show (number and date of airing). Then the admin adds the events, selects the corresponding show, and finally adds subsequent audio files for that event. This all works fine.
However, I want the shows to play automatically, based on date.
I have airdate (which is when the show will air) and the actual show number. The problem is that I tried to set the shows to air according to the date.
Show #4 will air on May 15, 2005. So Show 3, should still play until May 15, 2005. Currently, all shows play for a week. As each show is added, all have set airdates(which vary).
I tried the following in my query, but the Date portion seems useless. How can I modify this?
SELECT * FROM sjEventsSegments
INNER JOIN sjEventsAudio
INNER JOIN sjEventsShow
WHERE sjEventsShow.airdate <= #createodbcdatetime(now())#
AND sjEventsAudio.sizeType=2 <!--- Always stays the same --->
ORDER BY sjEventsSegments.sjEventID ASC