You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query='SELECT teacherId, name, surname from teacher where deleted = 0 and teacherId in (select teacherId from impart where associationId IN ( select associationId from association where subjectId='+entity_id+'));'
387
387
elifrelated_kind=='class':
388
388
# An especial case, it needed info in special format to show in the view.
389
-
query='select cls.classId, cls.course, cls.word, cls.level, t.name, t.surname, t.teacherId, i.impartId, cls.associationId from impart i JOIN (select course, word, level, c.classId, a.associationId from (select course, word, level, classId from class) c ' \
390
-
'JOIN (select classId, associationId from association where subjectId='+entity_id+') a where c.classId = a.classId) cls JOIN teacher t where i.associationId = cls.associationId and i.teacherId = t.teacherId union select c.classId, c.course, c.word, c.level, null, null, null, null, a.associationId ' \
391
-
'from (select classId, associationId from association where subjectId='+entity_id+') a JOIN class c where a.classId = c.classId;'
389
+
query='select cls.classId, cls.course, cls.word, cls.level, t.name, t.surname, t.teacherId, i.impartId, cls.associationId from (select * from impart where impart.deleted = 0) i JOIN (select course, word, level, c.classId, a.associationId from (select course, word, level, classId from class) c ' \
390
+
'JOIN (select classId, associationId from association where subjectId='+entity_id+' AND association.deleted = 0 ) a where c.classId = a.classId) cls JOIN teacher t where i.associationId = cls.associationId and i.teacherId = t.teacherId union select c.classId, c.course, c.word, c.level, null, null, null, null, a.associationId ' \
391
+
'from (select classId, associationId from association where subjectId='+entity_id+' AND association.deleted = 0 ) a JOIN class c where a.classId = c.classId;'
0 commit comments