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 do you handle duplicate records in a database?

Answer Posted / hr@tgksolutions.com

• Use DISTINCT in queries to filter duplicates.
• Use ROW_NUMBER() to identify duplicates:
DELETE FROM Employees
WHERE id NOT IN (
SELECT MIN(id)
FROM Employees
GROUP BY name, email
);
• Implement unique constraints on key fields.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Use of an integrity constraint is better to validate data. Explain

1041


What is the usage of analyze command in oracle?

1093


What are the advantages of oracle 12c?

1181


What is the difference between truncate & delete command?

1182


Typically, where is the conventional directory structure chosen for Oracle binaries to reside?

2144


What is the oracle implicit cursor?

1063


How to bring a tablespace offline?

1065


Explain the use of rows option in imp command.

1087


Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?

2357


What is dual table oracle?

984


How to retrieve data from an explicit cursor?

1059


How to use "if" statements on multiple conditions?

1174


Explain how are indexes update?

1064


Explain oracle data types with examples?

1030


What are the major difference between truncate and delete?

1058