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...

write a query to delete similar records in different tables
with same structure

Answer Posted / senthil

This done by Co-related sub-query:- based upon ROWID
uniqness this deletes the duplicate rows.

Delete from emp x where ROWID != (Select MIN(ROWID) from
emp y where y.empno = x.empno);

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rtm stands for?

1020


What is the command used to fetch the first 5 characters of a string?

1149


What is difference between my sql and sql?

995


how to show all tables with 'mysql'? : Sql dba

1058


Why are cursors used?

1057


What is the maximum number of triggers, you can apply on a single table?

944


what are the advantages and disadvantages of cascading style sheets? : Sql dba

1005


What is sql data?

922


Is primary key a clustered index?

909


what is a unique key ? : Sql dba

1024


What are the different datatypes available in PL/SQL?

1027


What are the popular database management systems in the it industry?

924


what is the command line end user interface - mysql? : Sql dba

925


Is sql a oracle?

913


What is the use of non clustered index?

927