Hi, further to my troubles today, I'm having problems with a JOIN statement.
I have three tables:
tblUniversity:
UniversityId (Primary Key)
Name
tblQualification
QualificationId (Primary Key)
Type
tblUniversityQualification:
Id (Primary Key)
UniversityId (Foreign Key)
QualificationId (Foreign Key)
I belive this is the correct format for a many-to-many relationship.
Anyhow, I'm now trying to select all Qualification Types for a particular University.
My SQL statement is running in a web application and is as follows:
(where '4' is the UniversityId of a particular university), but I just get errors on this line.
Any ideas as to how to do this would be much appreciated...
I have three tables:
tblUniversity:
UniversityId (Primary Key)
Name
tblQualification
QualificationId (Primary Key)
Type
tblUniversityQualification:
Id (Primary Key)
UniversityId (Foreign Key)
QualificationId (Foreign Key)
I belive this is the correct format for a many-to-many relationship.
Anyhow, I'm now trying to select all Qualification Types for a particular University.
My SQL statement is running in a web application and is as follows:
Code:
SELECT tblQualification.Type FROM tblQualification INNER JOIN tblQualification.Id ON tblUniversityQualification.QualificationId WHERE tblUniversityQualification = 4
Any ideas as to how to do this would be much appreciated...
Last edited: