Hi,
I need to extract from a table a rows from:
3 to 6 months
over 12 months
I have done the queries but did not work:
1)SELECT data_pick FROM table WHERE data <=NOW()-INTERVAL 3 month AND 6 month;
2)SELECT data_pick FROM table WHERE data <=NOW() > 12 month;
Thanks in advance.
I need to extract from a table a rows from:
3 to 6 months
over 12 months
I have done the queries but did not work:
1)SELECT data_pick FROM table WHERE data <=NOW()-INTERVAL 3 month AND 6 month;
2)SELECT data_pick FROM table WHERE data <=NOW() > 12 month;
Thanks in advance.