Описаному механизму плюсиков соответствует запрос:
select l.id,l.title,s.id,s.title
from lections l
left join lec_src ls on (ls.lection=l.id)
left join sources s on (ls.source=s.id)
where l.id=?lection
---
Соответственно для конспекта conspect (id, title, lection):
select c.id,c.title, s.id,s.title
from conspect c
left join lec_src ls on (ls.lection=c.lection)
left join sources s on (ls.source=s.id)
where c.id=?conspect
---
|