I have a select distinct query as follows:
SELECT DISTINCT [MergeString] FROM qryMergeTime
Whilst this does return the right records (i,e. only shows unique records in the [MergeString] field, it doesnt show all the fields that I need to see, i.e. the SELECT DISTINCT function needs to run on the [MergeString] field, but I want to see the results from the [FullString] field.
So, what I have thought of doing was as follows, but I am not sure if this would actually work
SELECT [FullString]
FROM qryMergeTime
WHERE [MergeString] In (SELECT DISTINCT [MergeString] FROM qryMergeTime)
I did try it out, and it runs very very slowly - there are 100,000 records or so...
Any ideas on how I can get the results that I am looking for?
Many thanks for your help.
SELECT DISTINCT [MergeString] FROM qryMergeTime
Whilst this does return the right records (i,e. only shows unique records in the [MergeString] field, it doesnt show all the fields that I need to see, i.e. the SELECT DISTINCT function needs to run on the [MergeString] field, but I want to see the results from the [FullString] field.
So, what I have thought of doing was as follows, but I am not sure if this would actually work
SELECT [FullString]
FROM qryMergeTime
WHERE [MergeString] In (SELECT DISTINCT [MergeString] FROM qryMergeTime)
I did try it out, and it runs very very slowly - there are 100,000 records or so...
Any ideas on how I can get the results that I am looking for?
Many thanks for your help.