I have 2 tables with similar columns. First table is upcoming_movies
and second is released_movies
. There is a column release_date
in table upcoming_movies
. Suppose the release_date
column has an entry 15/11/2015
, and if the given date has been exceeded then, the details in upcoming_movies
table should move to released_movies
table.
How I should validate the date and transfer all the details from first table to the second. Thanks in advance.