Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to delete duplicate records from a table?(for suppose in
a table we have 1000 Records in that we have 200 duplicate
Records , so ,how to findout that duplicate Records , how to
delete those Records and arranged into sequence order? one
more thing that there is no primary key at all)

Answer Posted / cp

DELETE FROM emp WHERE ROWID NOT IN(SELECT MAX(ROWID) FROM
emp GROUP BY empno)

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between Delete and Truncate command in SQL

1201


What is the difference between varchar and nvarchar?

987


define and explain the differences between clustered and non-clustered indexes.

1253


What is the latest version of microsoft sql server?

1116


What are the requirements to use odbc connections in php scripts?

1157


What are different types of schemas?

990


Why are sql functions used?

1184


What is the use of custom fields in report?

1042


Why are you getting errors when creating a new odbc dsn?

1290


Can you please explain the difference between function and stored procedure?

1048


What is cte (common table expression)?

1086


How to download and install the scaled-down database adventureworkslt?

1040


Explain what is lock escalation?

1113


What is rtm version in sql server?

1105


What is difference statement and preparedstatement?

1035