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 courseid secid 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 Which SQL statement would you use to achieve this?
Group of answer choices
SELECT building, COUNTDISTINCT secid AS sectioncount FROM section WHERE semester 'Spring' AND year GROUP BY building;
SELECT building, COUNT AS sectioncount FROM section WHERE semester 'Spring' AND year GROUP BY building;
SELECT building, COUNTDISTINCT courseid AS sectioncount FROM section WHERE semester 'Spring' AND year GROUP BY building;
SELECT building, COUNTsecid AS sectioncount FROM section WHERE semester 'Spring' AND year GROUP BY building;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
