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 plpgsql language?

980


what is the difference between delete and truncate statement in sql? : Sql dba

1130


What is sql rowcount?

952


What are local and global variables and their differences?

1047


Does view store data in sql?

902


What is dcl in sql?

907


What is error ora-01000: maximum open cursors exceeded

1064


What are all the different types of indexes?

1092


What are the different types of tables in sql?

931


Write a sql query to get the third highest salary of an employee from employee_table?

1029


what is the difference between clustered and non clustered index in sql? : Sql dba

1050


What is crud stand for?

934


What is the use of %rowtype?

979


how to calculate the difference between two dates? : Sql dba

995


What is sql*loader?

1076