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 find out duplicate records in a table(Query)

Answer Posted / santosh

we have to use the group by with having command to get the duplicate values. this query shall show the result of only the users have duplicate values in the employee table.

Syntex:
Select columnName From Table_name
Group By columnName
Having count (*) > 1

Example:
SELECT UserID FROM employee
GROUP BY userid
HAVING count( * ) > 1

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the 2 wings and body of the butterfly model of test development is represented?

1053


What is oo integration testing?

993


what is automation testing process? What are the main steps invloved in it?

1528


Which is the best institute in chennai to learn Softyware testing? Please help.

2178


Explain exhaustive testing?

1047


What is ansi - american national standards institute?

1033


HOW TO PERFORM DATABASE TESTING

2181


What is Functional, Non-Functional, and Regression used for (i.e. the purpose of each)?

1284


what is the difference between software testing and quality testing? how do they vary,waht is the process of testing in both software and quality?

2312


What is intrusive testing?

1106


What is the role of moderator in the review process?

1064


how cam www sites be tested

1917


A type of functional testing, which investigates the functions relating to the detection of threats, such as virus from malicious outsiders?

1222


what is the diff or relation between qa and verification qc and validation

2310


Explain the difference between functional and structural testing.

1167