I have a table in my mysql db. This is my table.
material sorg f_date t_date
2000012 2100 2016-05-01 2016-05-30
2000013 2100 2016-05-01 2016-05-21
2000021 2200 2016-05-01 2016-05-30
2000151 2100 2016-05-01 2016-05-15
2000336 2300 2016-05-01 2016-05-04
2000366 2300 2016-05-01 2016-05-24
2000451 2400 2016-05-01 2016-05-30
2000493 2200 2016-05-01 2016-05-11
I want to get material between two given date(f_date and t_date).
This is my query...
SELECT tbl_fast_goods.material from tbl_fast_goods WHERE f_date >= '2016-05-23' AND t_date <= '2016-05-29'
The output should be.
2000012, 2000021, 2000366, 2000451
But the problem is no output is given.