Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Case Sensitivity
Message
 
À
08/08/1997 15:09:43
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00043761
Message ID:
00043781
Vues:
31
>SELECT COUNT(*) as keycount, keyfield FROM table1 GROUP BY upper(keyfield) ORDER BY upper(keyfield) HAVING keycount >1
>
>Also, if you have a large table, make sure that you have and index on upper(keyfield)
>Hope this helps //:^)
>

The above is exactly what I'm looking for, thanks! What really confused me though is that my MS SQL Server will find a duplicate record if I issue the following:

SELECT licnum FROM drivauth GROUP BY licnum HAVING COUNT(*)>1

And the licnum in one record is "s422" and the other record is "S422"

Jeff
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform