Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicate Field Values
Message
 
À
09/04/2002 01:41:59
Jeffrey Ang
JGA Software Inc.
Davao, Philippines
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Divers
Thread ID:
00642480
Message ID:
00642545
Vues:
19
>How to create a sql command that would retrieve a duplicate field value in a table. let say duplicate employee no. i just want to ask if this is possible so that i won't make a small program 4 that.

something like:
SELECT EmployeeNo, count(*)
FROM YourTable
GROUP BY EmployeeNo
HAVING COUNT(*) > 1
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform