select firstName, lastName from students, courses, registration
where students.studentID = registration.studentID
and courses.courseCode = registration.courseCode
and gender = 'M' and courseName = 'Database Systems'
in(select firstName, lastName
from students, courses, registration
where students.studentID = registration.studentID
and courses.courseCode = registration.courseCode
and gender = 'M' and courseName = 'C++');``
我需要找到同时学习过数据库系统和 C++ 的男学生,为此我需要加入学生、注册和课程表,