Here I will explain how to write a SQL query to get duplicate records or Query to get count of duplicate records or rows in SQL Server or query to find duplicate records in SQL server.
SELECT Id,Name, COUNT(*) as DupeCount
FROM EmployeData
GROUP BY Id,Name
HAVING COUNT(*) > 1 Order By Id
|
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|


Subscribe by RSS
Subscribe by Email
3 comments :
You Develop a very good website..
Can u please give example to redirect to gmail accout. I gmail username and gmail password only when they click gmail-Button it should redirect to gmail account. Please show with some example
Thanks in advance
Actually need to specified how to write code for C# checking duplicate record through entering text box