我想看看这是否有效:
SELECT TO_CHAR (TutorReport.Month, 'MONTH') MONTH, TutorReport.MatchID, MatchHistory.MatchID, MatchHistory.Tutor.ID
FROM TutorReport, MatchID
WHERE TutorReport.MatchID=MatchHistory.MatchID
AND NOT (TutorReport.Month=‘JULY’);
表:
TutorReport: MatchID、月份、小时、课程
MatchHistory MatchID、TutorID、主题、学生 ID、StartDate EndDate
任何帮助表示赞赏