Home
Tech Articles
Code Samples
Learn
Freelance Projects
Online Testing
Geek Talk
Job Postings
Knowledge Base
Geek Blogs
Question Bank
Interview Questions
Certification
Placement Papers
Tech FAQ
Career Advice
Engineering
Ask Question
I am new,
Sign me up!
User Name
Remember Me?
Password
Code Base
Submit Code
Back
Oracle
PHP
Java
ASP.NET
C#
Delphi
VB.NET
Perl
ColdFusion
SQL Server
MySQL
C
C++
UNIX
AJAX
Flash
HTML
CSS
Java Script
VB Script
XML
Python
MS Access
SQL Server Code Base
•
Change to Proper case Function
•
Delete Duplicate Records
Code Samples
SQL Server
Delete Duplicate Records
Code Resource
Author:
gupt_12
Difficulty Level
:
Published:
6th Nov 2006
Read:
1719 times
Filed in:
SQL Server
Add Comment
Removing Duplicate Records in Sql. Execute the below statements in sequence
Sample Code
SELECT
*
FROM
table1
SELECT
DISTINCT
*
INTO
table2
FROM
table1
DELETE
table1
INSERT
INTO
table1
SELECT
*
FROM
table2
SELECT
*
FROM
table1
DROP
TABLE
table2
Copyright GeekInterview.com
Next:
Change to Proper case Function
Latest Code Samples
♦
Change to Proper case Function
♦
Delete Duplicate Records
Popular Code Samples
♦
Change to Proper case Function
♦
Delete Duplicate Records
Related Code Samples
»
Generation of Duplicate Image
»
Delete Spaces from File
»
Customer List With Edit and Delete Options
Post Comment
Members Please Login
Name:
Email:
(Optional. Used for Notification)
Title:
Comment:
Validation Code:
<=>
(Enter this code in text box)
Comments
In oracle we have rowid to uniquely identify every records. Do we have anything of that sort in DB2.
Because this would be a time consuming process if number of constraints/indexes defined on the table are more.
Popular Coders
#
Coder Name
Hits
1.
Jim.Anderson
1731
2.
gupt_12
1720
Active Coders
#
Coder Name
Codes
1.
gupt_12
1
2.
Jim.Anderson
1
Refined Tags
Sponsored Links
About Us
-
Privacy Policy
-
Terms and Conditions
-
Contact
Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved
Because this would be a time consuming process if number of constraints/indexes defined on the table are more.