skip to main
|
skip to sidebar
Isaac Levy's .NET Notes
Thursday, November 9, 2006
Finding duplicates in a table using SQL
In Transact SQL duplicate rows for a table mytable based on column mycolumn may be found as follows:
SELECT myfield, COUNT(*)
FROM mytable
GROUP BY myfield
HAVING COUNT(*) > 1;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
.
Blog Archive
►
2022
(13)
►
September
(5)
►
February
(8)
►
2017
(1)
►
November
(1)
►
2015
(15)
►
October
(3)
►
September
(4)
►
August
(4)
►
July
(1)
►
June
(1)
►
May
(2)
►
2013
(8)
►
October
(3)
►
July
(1)
►
June
(2)
►
May
(1)
►
January
(1)
►
2012
(15)
►
November
(1)
►
October
(1)
►
August
(1)
►
March
(1)
►
February
(4)
►
January
(7)
►
2011
(2)
►
June
(1)
►
May
(1)
►
2008
(6)
►
October
(1)
►
September
(2)
►
August
(1)
►
January
(2)
►
2007
(3)
►
August
(1)
►
May
(1)
►
April
(1)
▼
2006
(6)
▼
November
(6)
Calling a Windows or DOS Process from a Web Applic...
Finding duplicates in a table using SQL
Caching in .NET handlers
RegisterForEventValidation and event validation
Cool Mouse Over Effects
Simulating Return Key
No comments:
Post a Comment