Forum Moderators: open
I have an index setup on the "students" table for inst and points.
But the query still processes slowly. Any ideas for further indexing?
Thanks.
SELECT students.rrn,firstn,lastn,grade,points,apoints, allst,
anorg,seq,part,inst,assignto,audtype,school,city,schools.district
FROM students JOIN schools
ON students.schcode=schools.schode
JOIN schoolinfo
ON schools.schcode = schoolinfo.schcode AND
students.teach = schoolinfo.rrn
JOIN instruments
ON <need a link here between instruments and another table's column>
WHERE students.schyear='06' AND inst = seq AND sje='S' AND
assignto='B' and district <> 10
ORDER by inst,points desc, apoints desc, lastn, firstn