Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assistance needed
Message
From
29/11/2001 07:25:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Assistance needed
Miscellaneous
Thread ID:
00587400
Message ID:
00587400
Views:
53
Hi all:

i am trying to extract data from 2 tables (master and transaction) and store the resultant data in a temporary table in the form of a summary. For example,

Item Nmbr

AAA 10
BBB 7
CCC 12

and so on....

The SQL i am using is as below -

Select Master.PriName as Name, Count(*) as Total ;
From Tran, Master ;
Into Cursor C_GraphData ;
Where Tran.PriCode = Master.PriCode ;
Group By Tran.PriCode ;
Having Between(Tran.DatesOn,dDateFrom,dDateUpTo)

All is ok in the above SQL statement as long as the Between() clause is omitted but if I query for transaction records BETWEEN 2 dates, i end up getting data for all the dates (even those outside the desired range)

I would appreciate any help in overcoming this shortcoming.

sincere thanks in advance
Next
Reply
Map
View

Click here to load this message in the networking platform