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 database transaction? : Sql dba

1194


Why is pl sql used?

992


How to check if a column is nullable before setting to nullable?

1138


What jobs use sql?

988


What is meant by user defined function?

1059


When to use inner join and left join?

970


Write a sql select query that only returns each name only once from a table?

1028


What is parallel hint?

1337


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

1236


What is sql procedures and functions?

1021


How do you delete data from a table?

1053


explain access control lists. : Sql dba

1009


What are the datatypes available in pl/sql ?

1116


Can we use two order by clause in query?

977


How many sectors are in a partition?

1085