Sign In!
|
New User?Signup Now!
|
Forgot password?
Source Code 4 you
Home
Create Forum Topic
Check WebSite Rank
Publish Articles
UV Web Booster
Contact
Forum Type
Search Engine
.Net C# VB F# VC++
MonoPoject
Java J2EE
Zand Php Cake Php
Oracle Database Server
Mysql Database Server
DB2 Database Server
MSSql Databse Server
Javascript Ajax
Html Xml Xhtml
C Programming
C++ Programming
D Programming
CGI Programming
Perl Programming
Cobol Programming
Pascal Programming
Ruby Programming
Drupal Programming
Automobile
Software Testing
Linux Unix Mac Sun OS
Embedded Systems
Mainframe
IC Microcircuit Chip
Electronics Electrical
Hardware Netwarking
SAP ERP
Logical Reasoning
Human Resources
Science
Agriculture
Accounting
History
Pharmaceutical
Other Topic
Mysql Database Server
Posted by :
Guest
How to delete duplicate rows in sql?
Hi,
My question is:
How to delete duplicate rows in sql? I want to know the query which will delete duplicate rows reside in my table called User_Info.
Thanks in advance.
-Vivek
Posted by :
Nitin
Re : How to delete duplicate rows in sql?
delete duplicate-rows-in-sql
first create duplicate table like
CREATE TABLE temp SELECT * FROM dept
than write query like this.
DELETE FROM dept WHERE id NOT IN (SELECT MIN(id) FROM temp GROUP BY deptname)
If you have the better reply, then send it to us. We will display your reply after the approval.
Name :
Email Id :
Reply :