我得到的錯誤ERROR 1066(42000):不是唯一的表/別名: 'STUDENT_TBL'不是唯一的表/別名(42000)
select STUDENT,DATE,MARK from Assessments inner join STUDENT_TBL on
Assessments,ID_STUDENT=STUDENT_TBL,STD_ID inner join
Visit_log,ID_STUDENT=STUDENT_TBL,STD_ID where STUDENT_TBL,STD_ID
IN (select ID_STUDENT FROM Assessments group by ID_STUDENT having avg(MARK)>3.7);
如何解決呢?
現在我有類似的錯誤:ERROR 1052(23000):字段列表中的'DATE'列不明確 –
@ArtemMatrosov從哪個表引用'DATE'? – Rohan
從「評估」表 –