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 a join?

1054


Write a query to display the current date in sql?

1014


What is pl sql in oracle?

1037


What are the main features of cursor?

1071


Does a primary key have to be a number?

960


What does select * from mean in sql?

3205


Explain normalization and what are the advantages of it?

947


Is sqlite free?

960


how to get help information from the server? : Sql dba

931


What language is oracle sql developer?

991


Can you skip header records while loading? : aql loader

1039


what is a composite key ? : Sql dba

1043


How do you take the union of two tables in sql?

977


Write a query to find the names of users that begin with "um" in sql?

982


what are the types of join and explain each? : Sql dba

1028