Which SQL clause is used to combine rows that have identical values in specified columns into summary rows (e.g., counting students per city)?
निर्दिष्ट कॉलम में समान मान वाली पंक्तियों को सारांश समूहों (जैसे प्रति शहर छात्रों की संख्या) में बांटने के लिए किस SQL क्लॉज़ का उपयोग किया जाता है?
Solution Breakdown:
-> `SELECT city, COUNT(*) FROM students GROUP BY city;` groups all students by their city and counts how many belong to each city.
-> Hence, Option (B) is the correct answer.
-> `GROUP BY` क्लॉज़ एग्रीगेट फंक्शंस के साथ मिलकर समान मानों के समूह बनाता है।
-> इसलिए विकल्प (B) बिल्कुल सही है।