I created a query in Access using the wizard that returns more rows than in the queried DB. It is a inner join using the address field from two tables. Fairly new DB user, (Obviously). Please help!
It sounds like a cartesean join type of problem. In this case, if you have multiples of certain addresses in both tables, you could get this result. As an example, if the same address shows up in both tables three times, your query will return nine records (3x3). The best solution would be to find another field you can join on along with the address field that would give you a one-to-one match.
hth
Jeff Bridgham
Purdue University
Graduate School
Data Analyst
I checked and there isn't another field that will work when creating a 1:1. As an alternative, I'd like to insert a column from table 2 into table 1 using the address as the relationship. Can this work? What would be the most simple approach?
If you are trying to extract information that depends only on the address field and you have duplicates of the address in both tables, you should reconsider the way your database is normalized.
The relationship between the two is that address1 and building_name are the same.
Allstation contains all necessary info for analysis except the building_code from Netcatch, which I mapped as GRDLBldcode in Allworkstation.
Allworkstation ( there are 20 field names in this table)
comp_ id
host_name
serial_Num
username
cost_center
address1
city
country
(etc)
Netcatch
building_code
Building_Location
building_name
city
country
It updated changes to 178k rows. My table only contains 122k.
Can I assume the other 58k are due to the cartesean join issue and that because they are not present my table row count, that they do not impact my result table?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.