When adding a line:
LEFT JOIN core_records_sales as sales ON DATE(appointments.date) = DATE(sales.date_sold)
At my request, this speeds up the time for the script to run from 8 seconds to 2-3 minutes.
Will there be any data causing this problem, or am I implementing this function incorrectly?
I need to use DATE () because I need them to be on the same day, but the date fields are DATETIME
source
share