Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT - SQL and case
Message
De
20/08/2004 14:52:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00934972
Message ID:
00934976
Vues:
22
No, I want the number of occurance of each text regardless of the case of the text (case-insensitive). For exemple,
LAVAL = laval = Laval
The GROUP clause of the SELECT-SQL take into accoutn the case of the text, I don't want that.
>SELECT City, 001 AS Count FROM MyTable
>
>>Let say I have this table:
City
>>----
>>Notre-Dame-de-L'Ile-Perrot
>>Notre-Dame-de-l'Ile-Perrot
When I run this query
SELECT City, Count (*) FROM MyTable GROUP BY 1
I have this result:
Notre-Dame-de-L'Ile-Perrot, 2
What I want is:
Notre-Dame-de-L'Ile-Perrot, 1
>>Notre-Dame-de-l'Ile-Perrot, 1
How can I get this result?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform