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

How to grant create session privilege to a user in oracle?

946


Explain the truncate in oracle?

909


Design database draw er diagram for a certain scenario ?

4527


What is Undo Management Advisor in Oracle?

1039


How to use subqueries in the from clause in oracle?

1042


How do you find current date and time in oracle?

985


How to declare a local variable?

1051


How translate command is different from replace?

1004


What is an Oracle Instance?

1070


What do you mean by a tablespace?

980


what is the use of triggers in Java program? I mean where do we use triggers in Java programming?

2127


How to rename an index in oracle?

1058


What is the difference between count (*), count (expression), count (distinct expression)?

963


What is logical backup in oracle?

966


what is the difference between functional dependecy and multilevel dependency?

2419