General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Something like this should do it:
select left(cField,1) as letter, count(*) as no from yourTable group by 1
>Is anyone out there a SQL expert? I'm trying to count all the people in my personnel table and group them by first letter of last name. I want my result set to look like this:
> A 203
> B 309
> C 594
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only