Hi,
I have a table containing some data, simplified here for ease of explaination:
I want to pull out a list of unique names, how often each name appears, followed by whatever other data I have in the table, so I want the results to look like the following:
Can anyone help with the SQL to do this?
Thanks
I have a table containing some data, simplified here for ease of explaination:
Name : Sex
Alan : Male
Diane : Female
Bob : Male
Kate : Female
Alan : Male
I want to pull out a list of unique names, how often each name appears, followed by whatever other data I have in the table, so I want the results to look like the following:
Alan : 2 : Male
Diane : 1 : Female
Bob : 1 : Male
Kate : 1 : Female
Can anyone help with the SQL to do this?
Thanks