I have a table that holds few records less than 20. The table (cow_inactive
) is just with ID (int) & COW_INACTIVE_DATE (varchar) columns. I am trying to use the DATEDIFF to get all cows that are ready for insemination after 60 Days of being inactive.
SELECT * from cow_inactive where DATEDIFF(CURRENT_DATE, inactive_date)>=60
Result : Showing rows 0 - 0 (1 total, Query took 0.0022 seconds.)