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 a pl/sql block?

1199


what is sql? : Sql dba

1002


how to do backup entire database? : Transact sql

1111


How exception handling is done in advance pl/sql?

965


What plvcmt and plvrb does in pl/sql?

1294


What does varchar include?

935


How delete a row in sql?

974


what does myisamchk do? : Sql dba

1002


What do you mean by stored procedures?

995


What is cross join sql?

903


What is sqlservr exe?

964


What is benefit of creating memory optimized table?

955


Mention what are the benefits of pl/sql packages?

1058


What is pls integer?

1017


Can I join the same table twice?

1032