Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate Field Values
Message
 
To
09/04/2002 01:41:59
Jeffrey Ang
JGA Software Inc.
Davao, Philippines
General information
Forum:
Microsoft SQL Server
Category:
Database management
Miscellaneous
Thread ID:
00642480
Message ID:
00642545
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform