שאילתה מורכבת ב-ACCESS

שאילתה מורכבת ב-ACCESS

יש לי שאילתא שעובדת ב-SQL ואני צריכה להמיר אותה ל-ACCESS ואני מקבלת שגיאה שיש JOIN מורכב מידי... השאלה שלי היא איך עושים SELECT מתוך SELECT ב- ACCESS (השאילתה ב-SQL: )
FROM EstimationEvent INNER JOIN StudentEstimationEvents ON EstimationEvent.ID = StudentEstimationEvents.EstimationEventID INNER JOIN EstimationEventComponents ON EstimationEvent.ID = EstimationEventComponents.EstimationEventID INNER JOIN EduGroupStudents INNER JOIN Students ON EduGroupStudents.StudentID = Students.ID ON StudentEstimationEvents.StudentID = Students.ID LEFT OUTER JOIN StudentComponentEstimationEvent ON EstimationEventComponents.ID = StudentComponentEstimationEvent.EventComponentID AND Students.ID = StudentComponentEstimationEvent.StudentID WHERE (EduGroupStudents.EduGroupID = 1) AND (EstimationEvent.YearDivisionTypeID = 1) AND (EstimationEvent.EventType = 1)​
 

bugg

New member
בעיניים עצומות

אני אומר לך משהו, שבטח גם האקסס היה אומר לו היה יכול לדבר. וזה כי שנינו עצלנים - לשנינו אין כוח לקרוא את כל השאילתה... תנסי לחלק אותה לכמה שאילתות - בכל שאילתה לעשות כמה JOIN-ים.
 
למעלה