Hi everyone,
I have a question that I'm sure is fairly easy to answer. I have a simple select query with 5 fields from a table called "Milling Cutter" and a date field from the table, "Tool Characteristics". The tables are joined by Assembly Number, which is in the query. In the Tool Characteristics table, there can be records with the same assembly number but different dates, so the query returns all of these records. I only need one of them for the report that runs off of this query. Since the records have a different date, they aren't exactly the same, and so just adding Select Distinct .... won't eliminate the duplicate assembly numbered records. Is there a way I can have the query run with only the assembly number field being distinct (or every field except for date), and not the whole select statement. I assume it's a pretty easy SQL statement or maybe even some sort of query parameter, but I'm not too familiar with SQL. Thank you.
-Jeff
I have a question that I'm sure is fairly easy to answer. I have a simple select query with 5 fields from a table called "Milling Cutter" and a date field from the table, "Tool Characteristics". The tables are joined by Assembly Number, which is in the query. In the Tool Characteristics table, there can be records with the same assembly number but different dates, so the query returns all of these records. I only need one of them for the report that runs off of this query. Since the records have a different date, they aren't exactly the same, and so just adding Select Distinct .... won't eliminate the duplicate assembly numbered records. Is there a way I can have the query run with only the assembly number field being distinct (or every field except for date), and not the whole select statement. I assume it's a pretty easy SQL statement or maybe even some sort of query parameter, but I'm not too familiar with SQL. Thank you.
-Jeff