Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15072

Extract from table all row between date

$
0
0
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.

Viewing all articles
Browse latest Browse all 15072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>