Click here to Skip to main content
15,889,403 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
I want to scan sql database records for specific values (multiple records) and when this value found to display the records.

Thank you
Kyriakos
Posted

1 solution

Try:
SQL
SELECT column, COUNT(column) AS Occurrences FROM myTable GROUP BY column HAVING (COUNT(column) > 1)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900