I want to get rows from a table based on different dates. Although values of the dates are not always the same.
Basically I have to get first what are the range of the dates and then extract the rows of the columns based on those dates.
I cant do SELECT COUNT(location) FROM tweets WHERE date<= NOW() or date<=2012-07-29 17:38:32
cause as I said dates are not fixed. I DON’T PUT THE DATES but they are dynamically created.
Well, the crux of this is how the dates are generated but the query is simple: