SELECT Countries.CountryName, count(*) AS Antal FROM Countries
LEFT OUTER JOIN Voters ON Countries.ID = Voters.CountryID
GROUP BY Countries.CountryName
Frågan#1
Hej!
SELECT Countries.CountryName, Voters.CountryID FROM Countries LEFT OUTER JOIN Voters ON Countries.ID = Voters.CountryID
Istället för att visa alla som jag gör här skulle jag vilja veta hur många "votes" det är på ett "country". Går det att göra med count ?
Country X: 4 votes
