私はこの選択ステートメントを持っています::
SELECT [Course ID], [Course name]
FROM Courses
WHERE [Course ID] NOT IN
(SELECT [Course ID] from student_courses sc
INNER JOIN Courses c ON sc.[course ID] = c.[course ID]
WHERE [student ID] = 1
AND (c.[course start time] not BETWEEN Courses.[course start time] AND Courses.[course end time]
OR c.[course end time] not BETWEEN Courses.[course start time] AND Courses.[course end time]))
次のエラーが発生し続けます::
日付と時刻のデータ型は、以下の演算子では互換性がありません....
あいまいな列名「コース ID」
これらのエラーを修正し、実際にデータ型の列を比較するにはどうすればよいtime(7)
ですか?