I have a table (t1) that stores publications data and another table (t2) that stores articles data. The articles have datestamp 000-00-00. All article are associated with publications.
I need to run a script that will check and if there were no new articles posted under a particular publication for let say 30 days, change publication status from 'active' to 'inactive'.
So I guess I'll need to run a query something like
SELECT t1.publications
LEFT JOIN t2 ON (t1.publicationID = t2.publicationID)
WHERE t2.published_date > 30 days ..... ????
Need a mental nudge!