K
ksquared
I’m hoping someone has an idea regarding this issue
I have data set of repair orders identified by the dealer code that did
the service and the VIN (Vehicle Identification Numbers) serviced. The
table is 1.3 million records and covers 850 dealers with data over a 2
year period. I am trying to select the lowest date or mileage for each
unique dealer VIN combination. For me to be successful I need to
identify the 400,000 – 600,000 repair order records with the lowest
mileage so they can be associated with the selling dealer. I am running
Acess 2007 on a XP Centrino lap top with maybe 1 – 1.5 megs of RAM.
I am using two instances of the same table. The table contains (Vehicle
Identification Numbers and RO numbers dates and mileages etc. This query
as a select query runs slowly 10 – 15 minutes but runs. When I go to
sort the result set my PC freezes. Is there a better way to write the
query?. Or is it possible my Centrino based lap top is lacking in
processing power or memory? I am trying to run it for one unique dealer
NY075. I don’t have an easy way to run this on another PC since I don’t
have another one with Acess 2007 and more processor power
SELECT A.RPRDLR, A.RPSEQN, A.RPWODT, A.RHWOML, A.RPFVIN, A.RHCTTA,
A.RHWTTA, A.RHITTA, A.RHCPAY, A.RHIPAY INTO [First Oil Change]
FROM [First Service Data table] AS B, [First Service Data table] AS A
WHERE (((A.RPRDLR)="NY075") AND ((A.RPWODT) In (Select Min(B.RPWODT)
from [First Service Data table] B where B.RPFVIN=A.RPFVIN)));
I have data set of repair orders identified by the dealer code that did
the service and the VIN (Vehicle Identification Numbers) serviced. The
table is 1.3 million records and covers 850 dealers with data over a 2
year period. I am trying to select the lowest date or mileage for each
unique dealer VIN combination. For me to be successful I need to
identify the 400,000 – 600,000 repair order records with the lowest
mileage so they can be associated with the selling dealer. I am running
Acess 2007 on a XP Centrino lap top with maybe 1 – 1.5 megs of RAM.
I am using two instances of the same table. The table contains (Vehicle
Identification Numbers and RO numbers dates and mileages etc. This query
as a select query runs slowly 10 – 15 minutes but runs. When I go to
sort the result set my PC freezes. Is there a better way to write the
query?. Or is it possible my Centrino based lap top is lacking in
processing power or memory? I am trying to run it for one unique dealer
NY075. I don’t have an easy way to run this on another PC since I don’t
have another one with Acess 2007 and more processor power
SELECT A.RPRDLR, A.RPSEQN, A.RPWODT, A.RHWOML, A.RPFVIN, A.RHCTTA,
A.RHWTTA, A.RHITTA, A.RHCPAY, A.RHIPAY INTO [First Oil Change]
FROM [First Service Data table] AS B, [First Service Data table] AS A
WHERE (((A.RPRDLR)="NY075") AND ((A.RPWODT) In (Select Min(B.RPWODT)
from [First Service Data table] B where B.RPFVIN=A.RPFVIN)));