SQL HELP. I AM ONLY SHOWING 9 LINES, NOT 16. MY query. SELECT c.subjectDescription AS SUBJECTDESCRIPTION, c.subjectCode AS SUB, c.courseNumber AS COURSE, SUM(sec.capacity) AS TOTALCAPACITY FROM Courses c INNER JOIN sections sec ON c.courseid = sec.courseid WHERE c.subjectCode = 'NET' GROUP BY c.subjectDescription, c.subjectCode, c.courseNumber HAVING SUM(sec.capacity) > ( SELECT AVG(totalcapacity) FROM ( SELECT SUM(sec.capacity) AS totalcapacity FROM courses c INNER JOIN sections sec ON c.courseid = sec.courseid WHERE c.subjectCode = 'NET' GROUP BY c.subjectDescription, c.subjectCode, c.courseNumber ) ) ORDER BY c.subjectcode, c.coursenumber; 3. Select the course subject description, the subject code, the course number, and total course capacity for each NET course. Show only those courses with a total course capacity greater than the average capacity of all NET sections. Arrange the list by subject code then course number \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{ AssignmentCode } \\ \hline PK & assignmentTypelD int NOT NULL \\ \hline & description varChar2(255) NOT NULL \\ \hline \end{tabular} \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{ Location } \\ \hline PK & lecationID int NOT NULL \\ \hline & Building Varchar2(5) \\ Room Varchar2(5) \\ \hline \end{tabular}.
SQL HELP. I AM ONLY SHOWING 9 LINES, NOT 16. MY query. SELECT c.subjectDescription AS SUBJECTDESCRIPTION, c.subjectCode AS SUB, c.courseNumber AS COURSE, SUM(sec.capacity) AS TOTALCAPACITY FROM Courses c INNER JOIN sections sec ON c.courseid = sec.courseid WHERE c.subjectCode = 'NET' GROUP BY c.subjectDescription, c.subjectCode, c.courseNumber HAVING SUM(sec.capacity) > ( SELECT AVG(totalcapacity) FROM ( SELECT SUM(sec.capacity) AS totalcapacity FROM courses c INNER JOIN sections sec ON c.courseid = sec.courseid WHERE c.subjectCode = 'NET' GROUP BY c.subjectDescription, c.subjectCode, c.courseNumber ) ) ORDER BY c.subjectcode, c.coursenumber; 3. Select the course subject description, the subject code, the course number, and total course capacity for each NET course. Show only those courses with a total course capacity greater than the average capacity of all NET sections. Arrange the list by subject code then course number \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{ AssignmentCode } \\ \hline PK & assignmentTypelD int NOT NULL \\ \hline & description varChar2(255) NOT NULL \\ \hline \end{tabular} \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{ Location } \\ \hline PK & lecationID int NOT NULL \\ \hline & Building Varchar2(5) \\ Room Varchar2(5) \\ \hline \end{tabular}.