In my database I have 2 fields: "start_date" and "end_date". From a current DateTime, I need to select all dates that are in the range where date_time > = start_date AND date_time < = end_data. I did the following query and it did not work. (consider date_time as if it were '2014-10-14 17:44:00') Thanks!
SELECT * FROM campanha WHERE data_inicio <= '2014-10-14 17:44:00' AND data_fim > '2014-10-14 17:44:00';