thefrstgatsby
Technical User
If I have a table called names with fields called firstn and last n with some data
firstn lastn
------ ------
joe blow
joe mcintire
amy etc
mike etc
And I want to count the number of occurences of each fname in the table, so that I would get the following results
name # of occurrences
joe 2
amy 1
mike 1
actually it doesn't even need to say the number of occurences, I just want to order the names by number of occurences, how would I do that?
firstn lastn
------ ------
joe blow
joe mcintire
amy etc
mike etc
And I want to count the number of occurences of each fname in the table, so that I would get the following results
name # of occurrences
joe 2
amy 1
mike 1
actually it doesn't even need to say the number of occurences, I just want to order the names by number of occurences, how would I do that?