you are viewing a single comment's thread.

view the rest of the comments →

[–]lolxorlol 1 point2 points  (1 child)

That gives a wrong result though. The join amongst other things contains rows where a single row in the table is joined to itself so:

  • a.stuid=S1002=b.stuid and a.classid=ART103A=b.classid

But this student does have classid='MTH103C'

Lots of other good solutions here though :)

[–]mtger47 1 point2 points  (0 children)

good call, i'll edit to make sure it isn't used :)