SELECT CountryCode, COUNT(*) AS LinnadKokku --kirjete arv
FROM tCity
GROUP BY CountryCode
HAVING Count(*)>100
ORDER BY 1--COUNT(*) DESC
SELECT CountryCode, COUNT(District) AS LinnadKokku --DIstrictide arv
FROM tCity
GROUP BY CountryCode
HAVING Count(District) > 100
ORDER BY 1--COUNT(DIstrict) DESC
--SELECT * FROM tCity WHERE District IS NULL