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 clause in sql?

1108


what is primary key? : Sql dba

1028


Explain the significance of the & and && operators in pl sql.

1009


What is compute?

1088


Which constraints we can use while creating database in sql?

1081


how to see the create table statement of an existing table? : Sql dba

1016


what is the difference between $message and $$message? : Sql dba

997


What is anonymous block in sql?

1120


What is a system versioned table?

986


what is the difference between undefined value and null value? : Sql dba

1101


What is nested table in pl sql?

1070


What is pragma in pl sql?

1110


What are transaction and its controls?

1040


Define concurrency control. : Transact sql

1191


What is normalisation in sql?

1053