Using the count function in SQL when when each row of the primary key are categorized? -


i'm using table have employee names , corresponding countries of origin. i'm new sql i'm trying figure out how list country , number of employees first name starts a.

i have far, i'm getting count employees think:

select country, count(employee_names) table1 employee 'a%' 

how can counts employee names pooled?

try this

select country, count(employee_names) table1 employee 'a%' group country 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -