SQL HELP. I AM ONLY SHOWING 9 LINES, NOT 16. MY query. SELECT c..pdf

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}

Recomendados

Need help with the following! Create a package named cs520-hw3-part1-.docx por
Need help with the following! Create a package named cs520-hw3-part1-.docxNeed help with the following! Create a package named cs520-hw3-part1-.docx
Need help with the following! Create a package named cs520-hw3-part1-.docxscroghamtressie
2 vistas2 diapositivas
1.PART I Short ResponseDirections Answer each of the follo.docx por
1.PART I Short ResponseDirections Answer each of the follo.docx1.PART I Short ResponseDirections Answer each of the follo.docx
1.PART I Short ResponseDirections Answer each of the follo.docxAlyciaGold776
2 vistas4 diapositivas
Java Lab Manual por
Java Lab ManualJava Lab Manual
Java Lab ManualNaveen Sagayaselvaraj
2.1K vistas75 diapositivas
Monday at 10am to complete your prelab quiz- 6- Programming Assignment (1).docx por
Monday at 10am to complete your prelab quiz- 6- Programming Assignment (1).docxMonday at 10am to complete your prelab quiz- 6- Programming Assignment (1).docx
Monday at 10am to complete your prelab quiz- 6- Programming Assignment (1).docxLucasmHKChapmant
2 vistas1 diapositiva
JavaProgrammingManual por
JavaProgrammingManualJavaProgrammingManual
JavaProgrammingManualNaveen Sagayaselvaraj
165 vistas75 diapositivas
Cocoa for Web Developers por
Cocoa for Web DevelopersCocoa for Web Developers
Cocoa for Web Developersgeorgebrock
1K vistas41 diapositivas

Más contenido relacionado

Similar a SQL HELP. I AM ONLY SHOWING 9 LINES, NOT 16. MY query. SELECT c..pdf

C programming session 04 por
C programming session 04C programming session 04
C programming session 04Dushmanta Nath
1.4K vistas31 diapositivas
17432 object oriented programming por
17432   object oriented programming17432   object oriented programming
17432 object oriented programmingsoni_nits
303 vistas6 diapositivas
Cassandra data modelling best practices por
Cassandra data modelling best practicesCassandra data modelling best practices
Cassandra data modelling best practicesSandeep Sharma IIMK Smart City,IoT,Bigdata,Cloud,BI,DW
9.7K vistas5 diapositivas
needed to repost cause last one didnt work 24-13 LAB- Course informati.docx por
needed to repost cause last one didnt work 24-13 LAB- Course informati.docxneeded to repost cause last one didnt work 24-13 LAB- Course informati.docx
needed to repost cause last one didnt work 24-13 LAB- Course informati.docxJason0x0Scottw
13 vistas4 diapositivas
Micro project project co 3i por
Micro project project co 3iMicro project project co 3i
Micro project project co 3iARVIND SARDAR
121 vistas5 diapositivas
Having an issue creating this in C-Sharp C#Cant seem to fifure out.pdf por
Having an issue creating this in C-Sharp C#Cant seem to fifure out.pdfHaving an issue creating this in C-Sharp C#Cant seem to fifure out.pdf
Having an issue creating this in C-Sharp C#Cant seem to fifure out.pdfjeeteshmalani1
2 vistas2 diapositivas

Similar a SQL HELP. I AM ONLY SHOWING 9 LINES, NOT 16. MY query. SELECT c..pdf(20)

C programming session 04 por Dushmanta Nath
C programming session 04C programming session 04
C programming session 04
Dushmanta Nath1.4K vistas
17432 object oriented programming por soni_nits
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
soni_nits303 vistas
needed to repost cause last one didnt work 24-13 LAB- Course informati.docx por Jason0x0Scottw
needed to repost cause last one didnt work 24-13 LAB- Course informati.docxneeded to repost cause last one didnt work 24-13 LAB- Course informati.docx
needed to repost cause last one didnt work 24-13 LAB- Course informati.docx
Jason0x0Scottw13 vistas
Micro project project co 3i por ARVIND SARDAR
Micro project project co 3iMicro project project co 3i
Micro project project co 3i
ARVIND SARDAR121 vistas
Having an issue creating this in C-Sharp C#Cant seem to fifure out.pdf por jeeteshmalani1
Having an issue creating this in C-Sharp C#Cant seem to fifure out.pdfHaving an issue creating this in C-Sharp C#Cant seem to fifure out.pdf
Having an issue creating this in C-Sharp C#Cant seem to fifure out.pdf
jeeteshmalani12 vistas
Question 7 Algorithms and Their Complexitya) Write a simple progr.pdf por 4babies2010
Question 7 Algorithms and Their Complexitya) Write a simple progr.pdfQuestion 7 Algorithms and Their Complexitya) Write a simple progr.pdf
Question 7 Algorithms and Their Complexitya) Write a simple progr.pdf
4babies20102 vistas
Getting started with ES6 por Nitay Neeman
Getting started with ES6Getting started with ES6
Getting started with ES6
Nitay Neeman933 vistas
Objectives Assignment 09 Applications of Stacks COS.docx por dunhamadell
Objectives Assignment 09 Applications of Stacks COS.docxObjectives Assignment 09 Applications of Stacks COS.docx
Objectives Assignment 09 Applications of Stacks COS.docx
dunhamadell5 vistas
Simplifying SQL with CTE's and windowing functions por Clayton Groom
Simplifying SQL with CTE's and windowing functionsSimplifying SQL with CTE's and windowing functions
Simplifying SQL with CTE's and windowing functions
Clayton Groom2.1K vistas
C++ [Submission] - submit the driver program (DvcSchedule1.cpp) and .pdf por rahulfancycorner21
C++ [Submission] - submit the driver program (DvcSchedule1.cpp) and .pdfC++ [Submission] - submit the driver program (DvcSchedule1.cpp) and .pdf
C++ [Submission] - submit the driver program (DvcSchedule1.cpp) and .pdf
Write an algorithm in pseudocode to perform the multiplication of a m.pdf por mohammedfootwear
Write an algorithm in pseudocode to perform the multiplication of a m.pdfWrite an algorithm in pseudocode to perform the multiplication of a m.pdf
Write an algorithm in pseudocode to perform the multiplication of a m.pdf
mohammedfootwear3 vistas

Más de aloeplusint

Splashs Company builds custom fishing lures for sporting goods stor.pdf por
Splashs Company builds custom fishing lures for sporting goods stor.pdfSplashs Company builds custom fishing lures for sporting goods stor.pdf
Splashs Company builds custom fishing lures for sporting goods stor.pdfaloeplusint
12 vistas1 diapositiva
StatCrunch data set DataLoadShared Data Sets Simple Linear Regre.pdf por
StatCrunch data set DataLoadShared Data Sets Simple Linear Regre.pdfStatCrunch data set DataLoadShared Data Sets Simple Linear Regre.pdf
StatCrunch data set DataLoadShared Data Sets Simple Linear Regre.pdfaloeplusint
6 vistas1 diapositiva
Speedjet Aircraft Corporation tiene un laboratorio central de materi.pdf por
Speedjet Aircraft Corporation tiene un laboratorio central de materi.pdfSpeedjet Aircraft Corporation tiene un laboratorio central de materi.pdf
Speedjet Aircraft Corporation tiene un laboratorio central de materi.pdfaloeplusint
2 vistas1 diapositiva
SP es una ni�a peque�a de 3 a�os que se presenta al consultorio del .pdf por
SP es una ni�a peque�a de 3 a�os que se presenta al consultorio del .pdfSP es una ni�a peque�a de 3 a�os que se presenta al consultorio del .pdf
SP es una ni�a peque�a de 3 a�os que se presenta al consultorio del .pdfaloeplusint
2 vistas1 diapositiva
Splish�s Company builds custom fishing lures for sporting goods stor.pdf por
Splish�s Company builds custom fishing lures for sporting goods stor.pdfSplish�s Company builds custom fishing lures for sporting goods stor.pdf
Splish�s Company builds custom fishing lures for sporting goods stor.pdfaloeplusint
2 vistas1 diapositiva
Sorry for 4 questions in one post, but I didnt want to be confusing.pdf por
Sorry for 4 questions in one post, but I didnt want to be confusing.pdfSorry for 4 questions in one post, but I didnt want to be confusing.pdf
Sorry for 4 questions in one post, but I didnt want to be confusing.pdfaloeplusint
2 vistas1 diapositiva

Más de aloeplusint(20)

Splashs Company builds custom fishing lures for sporting goods stor.pdf por aloeplusint
Splashs Company builds custom fishing lures for sporting goods stor.pdfSplashs Company builds custom fishing lures for sporting goods stor.pdf
Splashs Company builds custom fishing lures for sporting goods stor.pdf
aloeplusint12 vistas
StatCrunch data set DataLoadShared Data Sets Simple Linear Regre.pdf por aloeplusint
StatCrunch data set DataLoadShared Data Sets Simple Linear Regre.pdfStatCrunch data set DataLoadShared Data Sets Simple Linear Regre.pdf
StatCrunch data set DataLoadShared Data Sets Simple Linear Regre.pdf
aloeplusint6 vistas
Speedjet Aircraft Corporation tiene un laboratorio central de materi.pdf por aloeplusint
Speedjet Aircraft Corporation tiene un laboratorio central de materi.pdfSpeedjet Aircraft Corporation tiene un laboratorio central de materi.pdf
Speedjet Aircraft Corporation tiene un laboratorio central de materi.pdf
aloeplusint2 vistas
SP es una ni�a peque�a de 3 a�os que se presenta al consultorio del .pdf por aloeplusint
SP es una ni�a peque�a de 3 a�os que se presenta al consultorio del .pdfSP es una ni�a peque�a de 3 a�os que se presenta al consultorio del .pdf
SP es una ni�a peque�a de 3 a�os que se presenta al consultorio del .pdf
aloeplusint2 vistas
Splish�s Company builds custom fishing lures for sporting goods stor.pdf por aloeplusint
Splish�s Company builds custom fishing lures for sporting goods stor.pdfSplish�s Company builds custom fishing lures for sporting goods stor.pdf
Splish�s Company builds custom fishing lures for sporting goods stor.pdf
aloeplusint2 vistas
Sorry for 4 questions in one post, but I didnt want to be confusing.pdf por aloeplusint
Sorry for 4 questions in one post, but I didnt want to be confusing.pdfSorry for 4 questions in one post, but I didnt want to be confusing.pdf
Sorry for 4 questions in one post, but I didnt want to be confusing.pdf
aloeplusint2 vistas
Spencer Co. decide establecer un fondo de caja chica con un saldo in.pdf por aloeplusint
Spencer Co. decide establecer un fondo de caja chica con un saldo in.pdfSpencer Co. decide establecer un fondo de caja chica con un saldo in.pdf
Spencer Co. decide establecer un fondo de caja chica con un saldo in.pdf
aloeplusint2 vistas
STARBUCKS OFRECIENDO SERVICIO AL CLIENTE Descripci�n general Ve.pdf por aloeplusint
STARBUCKS OFRECIENDO SERVICIO AL CLIENTE Descripci�n general Ve.pdfSTARBUCKS OFRECIENDO SERVICIO AL CLIENTE Descripci�n general Ve.pdf
STARBUCKS OFRECIENDO SERVICIO AL CLIENTE Descripci�n general Ve.pdf
aloeplusint4 vistas
Starbucks Corporation, mayo de 2015. Este caso se puede encontrar.pdf por aloeplusint
Starbucks Corporation, mayo de 2015. Este caso se puede encontrar.pdfStarbucks Corporation, mayo de 2015. Este caso se puede encontrar.pdf
Starbucks Corporation, mayo de 2015. Este caso se puede encontrar.pdf
aloeplusint2 vistas
StarHub English Premier League(c) Algunos de los fan�ticos m�s ferv.pdf por aloeplusint
StarHub English Premier League(c) Algunos de los fan�ticos m�s ferv.pdfStarHub English Premier League(c) Algunos de los fan�ticos m�s ferv.pdf
StarHub English Premier League(c) Algunos de los fan�ticos m�s ferv.pdf
aloeplusint2 vistas
Southern Atlantic Distributors began operations in January 2024 and .pdf por aloeplusint
Southern Atlantic Distributors began operations in January 2024 and .pdfSouthern Atlantic Distributors began operations in January 2024 and .pdf
Southern Atlantic Distributors began operations in January 2024 and .pdf
aloeplusint9 vistas
Speaker irregularly appoints acting municipal manager Speaker Ditshe.pdf por aloeplusint
Speaker irregularly appoints acting municipal manager Speaker Ditshe.pdfSpeaker irregularly appoints acting municipal manager Speaker Ditshe.pdf
Speaker irregularly appoints acting municipal manager Speaker Ditshe.pdf
aloeplusint19 vistas
Stanley-Morgan Industries adopted a defined benefit pension plan on .pdf por aloeplusint
Stanley-Morgan Industries adopted a defined benefit pension plan on .pdfStanley-Morgan Industries adopted a defined benefit pension plan on .pdf
Stanley-Morgan Industries adopted a defined benefit pension plan on .pdf
aloeplusint4 vistas
Standard direct materials cost per gallon of Xonic TonicStandard d.pdf por aloeplusint
Standard direct materials cost per gallon of Xonic TonicStandard d.pdfStandard direct materials cost per gallon of Xonic TonicStandard d.pdf
Standard direct materials cost per gallon of Xonic TonicStandard d.pdf
aloeplusint3 vistas
Some measurements on a predictor and a response give the summary sta.pdf por aloeplusint
Some measurements on a predictor and a response give the summary sta.pdfSome measurements on a predictor and a response give the summary sta.pdf
Some measurements on a predictor and a response give the summary sta.pdf
aloeplusint2 vistas
SQL using the information below to answer questions 7. Show the stud.pdf por aloeplusint
SQL using the information below to answer questions 7. Show the stud.pdfSQL using the information below to answer questions 7. Show the stud.pdf
SQL using the information below to answer questions 7. Show the stud.pdf
aloeplusint2 vistas
Some fish are famously able to develop into either sex, depending on.pdf por aloeplusint
Some fish are famously able to develop into either sex, depending on.pdfSome fish are famously able to develop into either sex, depending on.pdf
Some fish are famously able to develop into either sex, depending on.pdf
aloeplusint2 vistas
Sparta Sports Supply tiende a hacer la mayor parte de su negocio dur.pdf por aloeplusint
Sparta Sports Supply tiende a hacer la mayor parte de su negocio dur.pdfSparta Sports Supply tiende a hacer la mayor parte de su negocio dur.pdf
Sparta Sports Supply tiende a hacer la mayor parte de su negocio dur.pdf
aloeplusint2 vistas
Sorensen Systems Inc. is expected to pay a $2.50 dividend at year en.pdf por aloeplusint
Sorensen Systems Inc. is expected to pay a $2.50 dividend at year en.pdfSorensen Systems Inc. is expected to pay a $2.50 dividend at year en.pdf
Sorensen Systems Inc. is expected to pay a $2.50 dividend at year en.pdf
aloeplusint5 vistas
Suponga que compra un bono con cup�n del 15 por ciento a cinco a�os .pdf por aloeplusint
Suponga que compra un bono con cup�n del 15 por ciento a cinco a�os .pdfSuponga que compra un bono con cup�n del 15 por ciento a cinco a�os .pdf
Suponga que compra un bono con cup�n del 15 por ciento a cinco a�os .pdf
aloeplusint2 vistas

Último

Class 9 lesson plans por
Class 9 lesson plansClass 9 lesson plans
Class 9 lesson plansTARIQ KHAN
68 vistas34 diapositivas
unidad 3.pdf por
unidad 3.pdfunidad 3.pdf
unidad 3.pdfMarcosRodriguezUcedo
129 vistas38 diapositivas
Jibachha publishing Textbook.docx por
Jibachha publishing Textbook.docxJibachha publishing Textbook.docx
Jibachha publishing Textbook.docxDrJibachhaSahVetphys
54 vistas14 diapositivas
Mineral nutrition and Fertilizer use of Cashew por
 Mineral nutrition and Fertilizer use of Cashew Mineral nutrition and Fertilizer use of Cashew
Mineral nutrition and Fertilizer use of CashewAruna Srikantha Jayawardana
53 vistas107 diapositivas
JQUERY.pdf por
JQUERY.pdfJQUERY.pdf
JQUERY.pdfArthyR3
103 vistas22 diapositivas
Retail Store Scavenger Hunt.pptx por
Retail Store Scavenger Hunt.pptxRetail Store Scavenger Hunt.pptx
Retail Store Scavenger Hunt.pptxjmurphy154
52 vistas10 diapositivas

Último(20)

Class 9 lesson plans por TARIQ KHAN
Class 9 lesson plansClass 9 lesson plans
Class 9 lesson plans
TARIQ KHAN68 vistas
JQUERY.pdf por ArthyR3
JQUERY.pdfJQUERY.pdf
JQUERY.pdf
ArthyR3103 vistas
Retail Store Scavenger Hunt.pptx por jmurphy154
Retail Store Scavenger Hunt.pptxRetail Store Scavenger Hunt.pptx
Retail Store Scavenger Hunt.pptx
jmurphy15452 vistas
SURGICAL MANAGEMENT OF CERVICAL CANCER DR. NN CHAVAN 28102023.pptx por Niranjan Chavan
SURGICAL MANAGEMENT OF CERVICAL CANCER DR. NN CHAVAN 28102023.pptxSURGICAL MANAGEMENT OF CERVICAL CANCER DR. NN CHAVAN 28102023.pptx
SURGICAL MANAGEMENT OF CERVICAL CANCER DR. NN CHAVAN 28102023.pptx
Niranjan Chavan43 vistas
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant... por Ms. Pooja Bhandare
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Ms. Pooja Bhandare194 vistas
Education of marginalized and socially disadvantages segments.pptx por GarimaBhati5
Education of marginalized and socially disadvantages segments.pptxEducation of marginalized and socially disadvantages segments.pptx
Education of marginalized and socially disadvantages segments.pptx
GarimaBhati540 vistas
Creative Restart 2023: Leonard Savage - The Permanent Brief: Unearthing unobv... por Taste
Creative Restart 2023: Leonard Savage - The Permanent Brief: Unearthing unobv...Creative Restart 2023: Leonard Savage - The Permanent Brief: Unearthing unobv...
Creative Restart 2023: Leonard Savage - The Permanent Brief: Unearthing unobv...
Taste53 vistas
Monthly Information Session for MV Asterix (November) por Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC98 vistas
ANGULARJS.pdf por ArthyR3
ANGULARJS.pdfANGULARJS.pdf
ANGULARJS.pdf
ArthyR349 vistas
When Sex Gets Complicated: Porn, Affairs, & Cybersex por Marlene Maheu
When Sex Gets Complicated: Porn, Affairs, & CybersexWhen Sex Gets Complicated: Porn, Affairs, & Cybersex
When Sex Gets Complicated: Porn, Affairs, & Cybersex
Marlene Maheu108 vistas

SQL HELP. I AM ONLY SHOWING 9 LINES, NOT 16. MY query. SELECT c..pdf

  • 1. 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}