how to get non distinct values in sql

Solutions on MaxInterview for how to get non distinct values in sql by the best coders in the world

showing results for - "how to get non distinct values in sql"
Hanna
28 Jul 2018
1SELECT [EmailAddress], [CustomerName] FROM [Customers] WHERE [EmailAddress] IN
2  (SELECT [EmailAddress] FROM [Customers] GROUP BY [EmailAddress] HAVING COUNT(*) > 1)