This is the query, I need to run this automatically
I want it to get todays date then pull back the data for the past 30 days up to todays date
SELECT Applicants.FIRST_NAME as Apllicant_First_Name, Applicants.LAST_NAME as Apllicant_Last_Name, Companies.NAME as Company_Name, CVsSent.DATE_SENT as CV_Date_Sent, Requirements.JOB_TITLE, Interviews.DATE_TIME as Interview_Date, Employees.USER_NAME as Employee_User_Name, Interviews.NUM as Number_Of_Interviews, AppRelInfo.NUM_MARKETED_CVS, Applicants.POST_CODE, AppRelInfo.NUM_CVSENT
FROM (((((Requirements INNER JOIN CVsSent ON Requirements.JOB_ID = CVsSent.JOB_ID) INNER JOIN Companies ON Requirements.COMPANY_ID = Companies.COMPANY_ID) INNER JOIN Interviews ON (CVsSent.CVSENT_ID = Interviews.CVSENT_ID) AND (Requirements.JOB_ID = Interviews.JOB_ID)) INNER JOIN Employees ON Requirements.EMP_ID = Employees.EMP_ID) INNER JOIN Applicants ON CVsSent.APP_ID = Applicants.APP_ID) INNER JOIN AppRelInfo ON CVsSent.APP_ID = AppRelInfo.APP_ID
WHERE (((Interviews.DATE_TIME)>'20070701'))
Order by Employees.user_name asc