要求
查找并显示在“通勤”类型和“普通”类型的飞机上执行航班的所有飞行员(员工 ID 和姓名)。
1st image is Plane_new table
2nd image is FlightI_new table
3rd image is Employee_new table
解决方案
SELECT flightI_new.eid, employee_new.ename
FROM flightI_new
INNER JOIN employee_new ON flightI_new.eid = employee_new.eid
INNER JOIN plane_new ON flightI_new.pnum = plane_new.pnum
WHERE plane_new.ptype = 'Commuter' AND plane_new.ptype = 'Normal';
该代码适用于OR,但由于某种原因,我得到“没有返回行”。
知道如何解决吗?