Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I specify DISTINCT in a Totals Query?

Status
Not open for further replies.

EdAROC

Programmer
Aug 27, 2002
93
US
Reason for the question - performance.

Building a sub-query (that will feed data to another query that is used by a report). I know that all records for a given criteria (JOB) will contain the same data for some fields - All the Orders combined into one production Job will use the same base material.
So, I really only need to retrieve the first (or simply one) record of all orders for the job. If I were creating this query in SQL I could use the term DISTINCT.

I used the "First" in the Totals: row to get the result.

Yadda, yadda, yadda - performance speed - Is there a technique to make this faster? (Some Jobs will combine up to 50 orders).
 
Posting the query you have written so far would be helpful...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top