Hi Guys,
I was given a list which contain a list of student's firstname, lastname, street line 1, street line 2, street line 3 and country.This list has in 400 unique students names.The name of the list is called GR_list.
I need to add the student's telephone numbers. These numbers are found in a table called student_summary. The student_summary list contains Id, firstname, lastname, street line 1, street line 2, street line 3,telephone numbers etc. This table has in thousands of rows.
The first thing i did was import the list in access and then the following code was written
Code:
select distinct s.ID,g.firstname, g.lastname, g.streetline1, g.streetline2, g.streetline3 g.country,s.telephone
from GR_list g inner join student_summary s on (g.firstname= s.firstname) and (g.lastname=s.lastname) and (g.streetline1=s.streetline1) and (g.streetline2=s.streetline2) and (g.streetline3=s.streetline3) and (g.country=s.country)
When I checked the results only 40 out of the 400 person were returned. And all 400 person are in the list. Could any one tell me why this is?
Thanks