DISTINCT records

G

Guest

Ihave a query that has returned the results that I need to narrow down
further. I want to show the fastest time at each circuit, together with the
extra detail (Driver, Team etc). Now I can get the right result, showing 72
rows detailing Country, Circuit and Time, using example 1 below.

However, if I try and add the driver name, it then shows 600+ rows.



Query 7 provides the following colums
Country Circuit Driver Team Car Time Race Pos


Example 1
SELECT Query7.Country, Query7.Circuit, Min(Query7.Time) AS LapRec
FROM Query7
GROUP BY Query7.Country, Query7.Circuit;

Example 2 - Does not work (returns 600+ rows)
SELECT Query7.Country, Query7.Circuit, Min(Query7.Time) AS MinOfTime,
Query7.Driver
FROM Query7
GROUP BY Query7.Country, Query7.Circuit, Query7.Driver;
 
D

Duane Hookom

The simplest method might be to save the example 1 query and then create a
new query with example 1 and query 7. Join the Country, Circuit,
LapRe<->[Time] fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

HAVING Count(DISTINCT ... 2
Create query from list in a table 5
Ranking- Multiple Columns 1
Distinct records within week 2
distinct records 12
Query not working 4
Count Distinct Values? 7
Crosstab query oddity 5

Top