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

11. Display the client number and name and the client number and name of the person who referred that client.

2388


What is ADDM Advisor in Oracle?

1222


Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?

1066


What is oracle host variable?

1130


Why use resource manager in Oracle?

1172


How to use values from other tables in update statements using oracle?

1123


In which language oracle has been developed?

1134


ur a sql devoloper...what is the process in ur company for finding the database BUGS .. seperate DB testers are there? or devr.s are manage? if DB TESTERS in there what is the process

2343


Explain the use of file option in exp command.

1173


How to get maxsal , minsal, ename department wise in single query

1601


Explain an exception?

1055


 How to use an oracle sequence generator in a mapping?

1130


How to create a single index for multiple columns?

1080


What is a schema in oracle?

1064


Explain oracle left join with an example?

1062