Forum Moderators: open
I think this query was working but suddenly it isnt giving same right results so i am wondering if its right or any other way to run it!
The thing is that "num_of_days" is has the number of day that needs to be added and it is another field in same table!
SELECT `id`
FROM alerts
WHERE DATE_ADD(datetime, INTERVAL num_of_days DAY ) < NOW( )
Thanks in advance