M
martygeo
Hi,
I am trying to implement a query to find the most recent records for a
series of datapoints. i successfully used the following SQL statement on a
small trial dataset:
SELECT *
FROM [TableName]
WHERE [DateTimeField] in (Select Max([DateTimeField]) from [TableName] as S
where [Client]=[TableName].[Client])
The problem is that my dataset has 163k records for over 500 "clients" and I
don't have the time to let it process for hours (which it appears to be
doing). Can anyone suggest a more computational efficient query to do the
same thing?
Martin
I am trying to implement a query to find the most recent records for a
series of datapoints. i successfully used the following SQL statement on a
small trial dataset:
SELECT *
FROM [TableName]
WHERE [DateTimeField] in (Select Max([DateTimeField]) from [TableName] as S
where [Client]=[TableName].[Client])
The problem is that my dataset has 163k records for over 500 "clients" and I
don't have the time to let it process for hours (which it appears to be
doing). Can anyone suggest a more computational efficient query to do the
same thing?
Martin