Счет SQL
-- Classes with more than 10 students
SELECT student_class, COUNT(*) FROM students GROUP BY student_class
HAVING count(*) > 10;
VasteMonde
-- Classes with more than 10 students
SELECT student_class, COUNT(*) FROM students GROUP BY student_class
HAVING count(*) > 10;
SELECT COUNT(customer_id), country
FROM Customers
GROUP BY country
HAVING COUNT(customer_id) > 1;