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 sub query for eliminating duplicate rows using
analytical function?

Answer Posted / vyshak

delete from table where rowid not in (select max(rowid) from
table group by all column names);

or

delete (dense_rank() over(partition by all column names))dn
from table where dn>2;

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of & in pl sql?

1030


What is the maximum number of rows in sql table?

1008


How to execute a stored procedure?

1066


Is oracle and sql same?

991


How do we use distinct statement? What is its use?

1012


Is pl sql different from sql?

967


What is the sql case statement?

978


Why do we need pl sql?

955


What is normalization in a database?

1142


Why stored procedures are faster than query?

1006


How do I view output in sql developer?

1066


What is trigger in sql and its types?

1041


What is cursor status?

1176


What is right join in sql?

1075


What are all the different normalization?

1023