Solved

Based on the Table Description and SQL Shown, Which Query

Question 22

Multiple Choice

Based on the table description and SQL shown, which query lists the states in the Students table and displays the number of students from each state? Students (StudentID, FirstName, LastName, Street, City, State, PostalCode)


A) SELECT State, COUNT(*) AS CountOfState FROM Students ORDER BY State;
B) SELECT State, COUNT(*) AS CountOfState FROM Students HAVING State;
C) SELECT State, COUNT(*) AS CountOfState FROM Students;
D) SELECT State, COUNT(*) AS CountOfState FROM Students GROUP BY State;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents