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

How to use transactions efficiently : transact sql

1060


What is difference between function and trigger?

1054


What are triggers and its uses?

1050


What is the default isolation level in sql server? : Transact sql

1032


What is row_number () in sql?

985


What is scalar data type in pl sql?

1074


What is full join in sql?

997


Can we use pl sql in sql server?

1086


How to read/write files from pl/sql?

1040


What are pl/sql cursor exceptions?

1110


How to combine two stored procedures in sql?

1238


what is index? : Sql dba

1009


What is sql keyword?

1006


Do stored procedures prevent sql injection?

971


What is primary key and foreign key?

962