两张表:
person(name,person_id)
lesson(teacher_id, student_id, time, place)
我要检索老师姓名、学生姓名、时间和地点
就像这样:
Teacher|Student|Time|Place
ms bla | fred | 12 | UK
ms bla | Jim | 12 | UK
mr ttt | john | 10 | UNI
ETC..
那么如何选择person_id
两次WHERE
以匹配teacher-id
& student_id
?