Geeks With Blogs
Geeks with Blogs, the #1 blog community for IT Pros
Start Your Blog
Login
Raju
My Other Recent Posts
Top Ten Tips for WebService Interoperability
Value that makes a great difference
SQL Server Extended Procedure- usage of Built-in
SQL Server Extended Procedure- usage of Built-in
Share Point services and Share Point Server - preview list
ISA --> The Secure Server Features list
Single Sign-on
New Programming Language - XEN
Mark of Polymorphism
Good quote on theory and practice
Post Categories
SQLServer
C#
Blogs
General
BizTalkServer
Archives
September 2005 (3)
July 2005 (3)
January 2005 (1)
December 2004 (4)
October 2004 (1)
September 2004 (2)
May 2004 (3)
April 2004 (11)
March 2004 (8)
February 2004 (5)
November 2003 (3)
October 2003 (6)
Information -> Source for Next Generation
brcraju@hotmail.com
<< Overview of C#
|
Home
|
BizTalk Installation Requirements and sequence >>
Removing Duplicates
Comments (4)
|
Share
Simple way to Remove Duplicate Rows from an Existing Table in SQL
SELECT DISTINCT *
INTO duplicate_table
FROM original_table
GROUP BY key_value
HAVING COUNT(key_value) > 1
DELETE original_table
WHERE key_value
IN (SELECT key_value
FROM duplicate_table)
INSERT original_table
SELECT *
FROM duplicate_table
DROP TABLE duplicate_table
Posted on Thursday, October 23, 2003 10:47 AM
SQLServer
|
Back to top
Related Posts on Geeks With Blogs
Matching Categories
SSAS, MPP and PDW
SQLServer
Analysis Services (SSAS) - Unexpected Internal Err...
SQLServer
SQL Azure shows promise for small data application...
SQLServer
SQL Server Extended Procedure- usage of Built-in
SQLServer
SQL Server Extended Procedure- usage of Built-in
SQLServer
Comments on this post: Removing Duplicates
#
re: Removing Duplicates
Nice. Had to insert individual columns into select and group clauses, but this did the trick. I might use a temp table in db's that support it. Thanks,
ZGrinch
Left by
ZGrinch
on Dec 10, 2003 10:01 PM
#
re: Removing Duplicates
very good
Left by
疣迪
on Aug 16, 2005 8:03 AM
#
re: Removing Duplicates
very good
Left by
儿童
on Sep 09, 2005 1:48 PM
#
re: Removing Duplicates
hi
Thanks ,
This is a extremly good query.
This is a good experience for me. Thank u so much.
Regards
Ragesh.p.p
Left by
ragesh
on Nov 23, 2006 7:07 PM
Your comment:
Title:
Name:
Email: (never displayed)
(will show your
gravatar
)
Website:
Comment:
Allowed tags: blockquote, a, strong, em, p, u, strike, super, sub, code
Enter the code shown above
Copyright © Raju | Powered by:
GeeksWithBlogs.net
|
Join free
Popular Posts on Geeks with Blogs
0
Things to Watch out for with a Production system in Microsoft Azure
Uncaught SyntaxError: Unexpected token u. file JavaScript Error in MVC
Enterprise Architecture – SOA with a Dash of PubSub
SCCM2012SP1 – How to download prerequisites for offline installation
Windows 8 for Developers Online Camp
Geeks With Blogs Content Categories
ASP.Net
SQL Server
Apple
Google
SharePoint
Windows
Visual Studio
Team Foundation Server
Agile
Office
Design Patterns
Web
Azure
Brand New Posts on Geeks with Blogs
0
The New Google Maps – Better than you might think
APress Deal of the Day 24/May/2013 - A Programmer's Guide to C# 5.0
New Geeks With Blogs Home Page
Manage your MySQL Database on Windows Azure
To Start Or Not To Start