Задание:

IMG_23102013_113556

01Вариант 1:

T1 := S JOIN P WHERE S.CITY = P.CITY

T2 := T1 JOIN J WHERE T1.CITY = J.CITY

T3 := ( T2 JOIN SPJ ) [S#, P#, J#]