Dear Ted:

Thank you for replying.

I am trying to get aTable  of "amount"s over a 21 day period.

I think that the problem is theEnddate:
Gluctmp1.date + 20

Even though [Gluctmp1.date + 20] is a valid date, SELECT

I get the [unrecognized command] error with this:

   SELECT Gluctmp1.date, COUNT(Gluctmp1.amount);
     FROM Gluctmp1;
     WHERE ;
        Gluctmp1.category = "Glucos";
            Gluctmp1.date BETWEEN Gluctmp1.date AND (Gluctmp1.date + 20) ;
     GROUP BY Gluctmp1.date

-- 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***

On 5/1/2013 3:32 PM, Ted Roche wrote:
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]>






--- 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