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

in tabase table having a column in it empname field is
there which having 5 duplicate values is there i want
deleted all the duplicates i want showing only one name
only.

Answer Posted / venkat

Hope this methodology would help you better

1.Create a temp table
2.Select duplicated row's empid,empname into the temp table.
3.Create a cursor by selecting values from temp table.
4.Keep either min or max(empid) from original table and
delete the rest of the duplicated rows.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define right outer join?

969


What are the benefits of normalization?

1100


What are acid properties of transaction?

945


What are translations and its use? : sql server analysis services, ssas

1034


Explain what is log shipping?

1129


How is SQL Azure different than SQL server?

223


How to use old values to define new values in update statements in ms sql server?

1254


How to update muliple row in single query?

1046


What are the lambda triggers?

891


Can we install sql server 2016 on windows 7?

1124


What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?

955


What is user defined datatypes and when you should go for them?

1007


What is sql server query analyzer?

1016


Explain what is “asynchronous” communication in sql server service broker?

906


What is the report builder?

139