Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql command needs to be more efficient
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Sql command needs to be more efficient
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01200385
Message ID:
01200385
Views:
59
hi all,
I have a customer who wants a report in excel for a number of customers. I have done it but it is very slow as i have lots of select statements and loops. What is currently happens now is that i look at the customer file to find the groupings and select these into a cursor. i look at this cursor and link into the transactions file for those customers. Now i have to produce figures for MTD and YTD for both this year and last, this is 4 different figures and i don't know how to do this in one select, or if its possible, so i have 4 selects. then to top it off i have to link to the details file and then the stock file so as to get a break down for stock groups 1 and 2. and i do this for every customer in the group, then when finished with that group open up a new worksheet and start all over again. i have it working but i really need to make it more efficient so any pointers/help very much appreciated.
~M
Go raibh maith agat

~M
Next
Reply
Map
View

Click here to load this message in the networking platform