以下查询有效,并在其上返回正确的数据:
SELECT Class.Class_ID, Class.Class, Class.Home_Row_Teacher, Class.Type, Class.Room_Number, Class.Student_Amount, Query_Hours_Per_Class.SumOfNumber_Of_Hours
FROM Class INNER JOIN Query_Hours_Per_Class ON Class.Class = Query_Hours_Per_Class.Class;
但是我尝试查看基于此报表,它会显示以下错误消息: “指定的字段'Class.Class'可以引用SQL语句的from子句中列出的多个表。”