Моя таблица:
City | Country
--------------------
City1 | Country1
City2 | Country1
City3 | Country1
City4 | Country1
City1 | Country2
City2 | Country2
Я хочу выбрать те страны, в которых менее 3 городов:
Count | Country
--------------------
2 | Country2
Итак, мой запрос:
SELECT Country, COUNT(*) AS Count FROM Table GROUP BY Country WHERE Table.Count < 3
не работает.