Question: In the university database, the section table records details about each course section, including the course _ id , sec _ id , semester, year,

In the university database, the section table records details about each course section, including the course_id, sec_id, semester, year, and building. You are tasked to find out the number of different sections that were held in each building for the Spring semester of 2007. Which SQL statement would you use to achieve this?
Group of answer choices
SELECT building, COUNT(DISTINCT sec_id) AS section_count FROM section WHERE semester = 'Spring' AND year =2007 GROUP BY building;
SELECT building, COUNT(*) AS section_count FROM section WHERE semester = 'Spring' AND year =2007 GROUP BY building;
SELECT building, COUNT(DISTINCT course_id) AS section_count FROM section WHERE semester = 'Spring' AND year =2007 GROUP BY building;
SELECT building, COUNT(sec_id) AS section_count FROM section WHERE semester = 'Spring' AND year =2007 GROUP BY building;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!