I have an Access database that imports data from Excel. The database does a comparison between two tables. I do want to fuss with changing the structure of the data coming from Excel--e.g. there are no primary keys in the Access tables. When I do a query I do not get the correct results. I am keeping this as simple as can be.
- Spec table fields: Dates--date format, Hours--number format
- Stats table fields: Dates--date format, Cell--number format, Texting--number format
I have tried all 3 join properties on the Dates field and anytime I repeat the date in the Spec table with the same number of hours my query gives me quadrupling results.
Here is one of my attempts:
SELECT Spec.Dates, Spec.Hours, Stats.Dates, Stats.Cell, Stats.Texting
FROM Spec RIGHT JOIN Stats ON Spec.Dates = Stats.Dates
GROUP BY Spec.Dates, Spec.Hours, Stats.Dates, Stats.Cell, Stats.Texting;
I hope this is clear--I can attach a sample database if needed.