Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid column name
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Invalid column name
Miscellaneous
Thread ID:
00368854
Message ID:
00368854
Views:
56
I'm trying to count how many customers we have per 1st letter of point of contact (POC). I'm using:

select left(poc,1) as alpha, count(poc)
from custfl
group by alpha

Getting error:

Server: Msg 207, Level 16, State 3, Line 1
Invalid column name 'alpha'.

Can you tell me what is the correct syntax for SQL?
Next
Reply
Map
View

Click here to load this message in the networking platform