2013-11-22 57 views

回答

3

這將返回國的名稱和該國出現在列次數:

SELECT country, COUNT(*) as count 
FROM Contact 
GROUP BY country 
ORDER BY count DESC 

它也返回了國家的大多數爲了不頻繁。

1

以下應該工作

SELECT COUNT(country) AS Num_of_country, country 
FROM Contact 
GROUP BY country 
相關問題