I definetly have the data in my DB because I can see it, but this query will not return the right data.
I basically want to return the top 5 data points before this date (earlier) but including the date.
select TOP 5 qDate, from Quotes WHERE qTicker='goog' and qDate <= #3/17/2015# ORDER BY qDate DESC;
so this should return.
3/17/2015
3/16/2015
3/13/2015
3/12/2015
3/11/2015
*please note, it doesn't return 3/15 or 3/14 because it doesn't exist in my database. So starting with x date return this date (data point) and the 4 previous dates (or data points within qDate field)
I basically want to return the top 5 data points before this date (earlier) but including the date.
select TOP 5 qDate, from Quotes WHERE qTicker='goog' and qDate <= #3/17/2015# ORDER BY qDate DESC;
so this should return.
3/17/2015
3/16/2015
3/13/2015
3/12/2015
3/11/2015
*please note, it doesn't return 3/15 or 3/14 because it doesn't exist in my database. So starting with x date return this date (data point) and the 4 previous dates (or data points within qDate field)