I am facing problem with Inner join in Access Database. I have two table having two column each. one is MID and other is DOB in both table. The name of first table is maintable and other is under5. I want to retrieve all those records that are present in under5 table after matching it with maintable so i used Inner join. the problem is there is a MID 10106 whose frequency in under5 table is 2 and in maintable it is 5 but after running the query the number of MID(10106) returned is 10( i guess the expected behaviour should be 2) which is really absurd. please help me to solve this problem. This is my Query:
SELECT maintable.MID, maintable.DOB, Under5.MID, Under5.DOB
FROM under5
INNER JOIN maintable ON under5.MID=maintable.MID;