wpc_por
09-27-2000, 03:08 AM
I have a list of about 2000 items (extracted from database)
and for each of these item I would like to extract the
records for the 30 latest transactions made.
Now I am doing it this way:
1. Run query to extract items wanted
2. Write items into file
3. Close query and database
For i = 1 to No_of_items
1. Read item from item list (in above data file)
2. Add the item to my SQL in the WHERE section and extract data
3. Read/Write information for every record extracted
next i
Unfortunately this method is taking Ages (more than
4 hours to complete; tried using the ADO and Access).
Is there anyway that i can use one SQL to complete the
data extraction for all the (2000x30) records that I need?
I'm no expert in SQL!! Or maybe another way to get it done
faster.....
Thank you in advance for any guidance provided.
and for each of these item I would like to extract the
records for the 30 latest transactions made.
Now I am doing it this way:
1. Run query to extract items wanted
2. Write items into file
3. Close query and database
For i = 1 to No_of_items
1. Read item from item list (in above data file)
2. Add the item to my SQL in the WHERE section and extract data
3. Read/Write information for every record extracted
next i
Unfortunately this method is taking Ages (more than
4 hours to complete; tried using the ADO and Access).
Is there anyway that i can use one SQL to complete the
data extraction for all the (2000x30) records that I need?
I'm no expert in SQL!! Or maybe another way to get it done
faster.....
Thank you in advance for any guidance provided.