↧
Answer by CodingYoshi for How to select attribute from two indexes, both...
You need to joins to the pupils table twice: Once for IDPupil1 and once for IDPupil2: SELECT t.ID AS ID, t.IDPupil1, t.IDPupil2, pupils1.Name AS Name1, pupils1.Forename AS Forename1, pupils2.Name AS...
View ArticleHow to select attribute from two indexes, both pointing at the same table?
I have two tables, one with this form:table teams:ID, IDPupil1, IDPupil21 3000 3001and the second this form:table pupils:ID, Name, Forename3000 Smith John3001 Morgan LisaIDPupil1 and IDPupil2 are...
View Article