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 are the packages in pl sql?

1065


What is server name sql?

1203


Is like operator in sql case sensitive?

1077


What are the different dcl commands in sql?

1230


How do I find sql profiler?

990


what is auto increment? : Sql dba

1049


Which is faster subquery or join?

1268


How can you tell the difference between an index and a view?

976


How do I view a sql database?

1059


What are sql data types?

1072


What is sql and its types?

1252


What are the two parts of design view?

1062


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

1046


What is %type in sql?

1018


How to avoid duplicate records in a query?

1051