snowboardr
Programmer
What would be the most efficient way to count how many records there are for each last name of a user from A-Z
ie:
A: 30 users
B: 10 users
C: 22 users
i tried this but i get an error saying:
#1305 - FUNCTION ttdb.count does not exist
Jason
[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]
ie:
A: 30 users
B: 10 users
C: 22 users
Code:
select substring(clast, 1,1), count (clast) from customers group by substring(clast,1,1);
i tried this but i get an error saying:
#1305 - FUNCTION ttdb.count does not exist
Jason
[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]