WHERE dates BETWEEN startdate AND enddate is the canonical SQL phrase. I'm not sure it works in all versions of FoxPro.
On Wed, May 1, 2013 at 3:23 PM, Charles Hart Enzer, M.D., FAACP < [email protected]> wrote: > I want to: > > SELECT ; > dates, ; > COUNT (amount) as CNT ; > FROM data ; > WHERE dates = BETWEEN(dates, dates, dates + 20) = .T. ; > GROUP BY 1 ; > ORDER BY 1 > > I also tried instead of the WHERE clause: > > HAVING BETWEEN(dates,dates,dates + 20 ) = .T. > > Each "dates" has a number of "amount" records. > > I want to make a count of the number of records for every 21 day range. > > Thank you. > -- > > -- *Charles* -- > Website: > http://homepages.uc.edu/~**enzerch/<http://homepages.uc.edu/~enzerch/>< > http://homepages.uc.edu/%**7Eenzerch/<http://homepages.uc.edu/%7Eenzerch/> > > > *"Medicine is a science of uncertainty and an art of probability" > *William Osler, M.D. > > ***Stop **Spammers**and **Virus Propagation*** > > ***Before **forwarding**, please **delete**the history of all email > address*** > > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > > ______________________________**_________________ > Post Messages to: [email protected] > Subscription Maintenance: > http://mail.leafe.com/mailman/**listinfo/profox<http://mail.leafe.com/mailman/listinfo/profox> > OT-free version of this list: http://mail.leafe.com/mailman/** > listinfo/profoxtech <http://mail.leafe.com/mailman/listinfo/profoxtech> > Searchable Archive: > http://leafe.com/archives/**search/profox<http://leafe.com/archives/search/profox> > This message: http://leafe.com/archives/**byMID/profox/51816BB5.80103@** > uc.edu <http://leafe.com/archives/byMID/profox/[email protected]> > ** All postings, unless explicitly stated otherwise, are the opinions of > the author, and do not constitute legal or medical advice. This statement > is added to the messages for those lawyers who are too stupid to see the > obvious. > > Report [OT] Abuse: > http://leafe.com/reportAbuse/**[email protected]<http://leafe.com/reportAbuse/[email protected]> > -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CACW6n4sYDCR1oJqTsshT13+bOtAsGE76HDaqVEc7n=jxjkb...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

