Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid column name
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Invalid column name
Divers
Thread ID:
00368854
Message ID:
00368854
Vues:
55
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform