J
Jason
I thought this would be pretty simple, but can't seem to get it. I have a
table with a few columns, but the only one I'm concerned about is the
LastName column.
I basically want to count how many customers for each alphabet letter.
So it would show:
A - 50
B - 25
C - 90
etc.
....
This is what I have:
SELECT Left([l_name],1) AS Expr2, Count(Left([l_name],1)) AS Expr1
FROM CUSTOMERS;
I clicked on the Totals button and selected to Count the Expr1 and to Group
By the Expr2. when I try to run, I get an error:
ODBC call failed. SQL column ' ' is not found (#806).
If I remove Expr2, the query runs but it only counts ALL of the last name
initials, it doesn't give me a breakdown per letter.
What am I doing wrong?
table with a few columns, but the only one I'm concerned about is the
LastName column.
I basically want to count how many customers for each alphabet letter.
So it would show:
A - 50
B - 25
C - 90
etc.
....
This is what I have:
SELECT Left([l_name],1) AS Expr2, Count(Left([l_name],1)) AS Expr1
FROM CUSTOMERS;
I clicked on the Totals button and selected to Count the Expr1 and to Group
By the Expr2. when I try to run, I get an error:
ODBC call failed. SQL column ' ' is not found (#806).
If I remove Expr2, the query runs but it only counts ALL of the last name
initials, it doesn't give me a breakdown per letter.
What am I doing wrong?