Quantcast
Channel: How to select attribute from two indexes, both pointing at the same table? - Database Administrators Stack Exchange
Browsing latest articles
Browse All 2 View Live

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 Article


How 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

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>