Hi i need a query help (and yes i have been trying to search but could not find something that helped me)
I have two tables:
Customer
CustomerIDCountryID
Country
CountryIDCountry
How I would like to write a query to have result as following:
CountryID, Country, NumberOfOccurancesOfThisCountryInTheCustomerTable
Help would really be appreciated!
Try this:
EDIT: Using
LEFT JOINvs.INNER JOINto includeCountryrecords that have zeroCustomerrecords (thanks Mark Bannister).