SELECT *
FROM tCountry
WHERE LEFT(COuntryName,1)=RIGHT(CountryName,1)
Kõige laiemalt levinud juhtimisvorm Euroopas
SELECT TOP 1 GovernmentForm, COUNT(*) as Kokku
FROM tCountry
WHERE Continent LIKE 'Europe'
GROUP BY GovernmentForm
ORDER BY Count(*) DESC
--5. Riikide arv, mille nimetus algab iga (A, B, …, Z) tähega
SELECT LEFT(CountryName,1) as Taht, COUNT(*) AS Kokku
FROM tCountry
GROUP BY LEFT(CountryName,1)
ORDER BY 1
--6. Mitu riiki on igal sajandil saanud iseseisvaks
SELECT Indepyear/100+1 as Sajand, COUNT(*) As Kokku
FROM tCountry
WHERE IndepYear IS NOT NULL
GROUP BY Indepyear/100+1
ORDER BY Indepyear/100+1
--7. Kõige väiksema pindalaga kontinent
SELECT TOP 1 Continent, SUM(SurfaceArea) as PindalaKokku
FROM tCountry
GROUP BY Continent
ORDER BY SUM(SurfaceArea)