I have two sets of data in queries with an inner join on the ID number only.
These are the fields in the two queries.
Query A Query B Query B Date
ID Number ID Number Date
12345 12345 1/1/12
12345 1/2/12
12345 1/3/12
I would like the data from Query A and Query B that have the same ID Number. So I want my results to look like below. The results should only return one field because there is only 1 field in table A.
ID Number Date
12345 1/1/12
However, the query is pulling the ID number from query A and all of the fields from query B that because they all match query A creating duplicate data. For example:
ID Number 12345 Date 1/1/12
ID Number 12345 Date 1/2/12
ID Number 12345 Date 1/3/12
Is there a way for me to put the date field in table A? so that way I can query and join the data using the ID # and the date so the results will only show that one record that is in that is in table A with the correspoding record in Table B? I am unable to just copy and past because there is no way for me to query data between the 2 except for ID #.