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...

How to remove duplicate rows from a table?.

Answer Posted / karthik

with [dup_cte] as {
select row_number(partition by eid order by eid) as rn from emp}
go
delete from [dup_cte] where rn>1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does cross join work?

877


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

910


Which is faster subquery or join?

1148


when MSQL8.0 is in market

2016


What are sql objects?

1014


Explain what is a field in a database and record in a database?

1016


how tsql statements can be written and submitted to the database engine? : Transact sql

924


Define overloaded procedure?

1016


What are the types of operators available in sql?

1011


How do I write a sql query in pgadmin 4?

927


How to return multiple rows from the stored procedure?

916


How do you optimize a stored procedure in sql?

896


What is cost in sql execution plan?

909


What is a composite primary key?

1033


Can you join views in sql?

897