SELECT course_id,semester,year,sec_id,AVG(tot_cred)FROM takes NATURAL JOIN studentWHERE year = 2017GROUP BY course_id,semester,year,sec_idHAVING COUNT(id) >= 2;
Explain why appending NATURAL JOINsection in the FROM clause would not change the
result.
Appending NATURAL JOINsection in the FROM clause would not change the
result because there is no logic in the query that uses attributes in section that
are not found in takes relation. Also since every tuple in takes relation has a corresponding
tuple in the section relation (due to foreign key constraint), there will be no change if we append
the NATURAL JOINsection in the FROM clause.