I have the following information held in 3 tables. The tables hold information about parents applying for school places for their children
Table 1 - Holds basic parent info..
Person_ID
Surname
Forename
Table 2 - Holds info on what choices the parents have made..
Person_ID
Preference_no
School_ID
Table 3 - Identifies the School Name chosen
School_ID
School_name
Im trying to produce a query that will list just one row for each person displaying their name, preference_no (a parent can state up to 3 preferences)and the school name. The query would contain the following;
Surname, forename, preference1, School_name, Preference2, school_name, preference3, school_name
How would i go about this? at the moment i get the following;
Name Preference School
John Smith 1 Test School
John Smith 2 Another Test School
John Smith 3 Further test school
I cant think how to get all on one line??
Table 1 - Holds basic parent info..
Person_ID
Surname
Forename
Table 2 - Holds info on what choices the parents have made..
Person_ID
Preference_no
School_ID
Table 3 - Identifies the School Name chosen
School_ID
School_name
Im trying to produce a query that will list just one row for each person displaying their name, preference_no (a parent can state up to 3 preferences)and the school name. The query would contain the following;
Surname, forename, preference1, School_name, Preference2, school_name, preference3, school_name
How would i go about this? at the moment i get the following;
Name Preference School
John Smith 1 Test School
John Smith 2 Another Test School
John Smith 3 Further test school
I cant think how to get all on one line??