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

How do you migrate data from mssql server to azure?

165


Would you store your query in a ssrs report or a database server? State the reason why?

148


State a few properties of relational databases?

1062


Name few of the dcl commands in sql?

951


Is the order of columns in the set clause important in ms sql server?

929


Do you know what are the ways available in sql server to execute sql statements?

965


What is the new security features added in sql server 2016? : sql server security

1057


How many null values we can have in a unique key field in sql server?

905


What is a View ? Can we insert, Update and delete a view?

942


Write down the syntax and an example for create, rename and delete index?

925


Explain a join?

1007


What is field with example?

872


What is the maximum number of instances in 32 bit and 64 bit sql server 2012?

926


How to replace given values with null using nullif()?

925


Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?

915