Charles,

Unless I'm missing something, you're asking for a Date 'between' itself and itself + 20. ??? The 'Between' value should be a constant. Also, why are you 'counting' the Amount?

   StartDate = <whatever>
   EndDate = StartDate + 20
   SELECT Date, COUNT(*) from Gluctmp1 ;
      WHERE Category = 'Glucos' ;
         AND BETWEEN (Date, StartDate, EndDate) ;
      GROUP BY Date ORDER BY Date

Dan Covill

On 05/01/13 02:02 PM, Charles Hart Enzer, M.D., FAACP wrote:
    *SELECT Gluctmp1.date, COUNT(Gluctmp1.amount);
          FROM Gluctmp1;
          WHERE ;
             Gluctmp1.category = "Glucos";
             AND BETWEEN( Gluctmp1.date, Gluctmp1.date, Gluctmp1.date +
    20 ) ;
          GROUP BY Gluctmp1.date ;
          ORDER BY Gluctmp1.date
    *

_______________________________________________
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