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/%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
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/[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.

Reply via email to