Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to get non distinct values in sql

SELECT [EmailAddress], [CustomerName] FROM [Customers] WHERE [EmailAddress] IN
  (SELECT [EmailAddress] FROM [Customers] GROUP BY [EmailAddress] HAVING COUNT(*) > 1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #distinct #values #sql
ADD COMMENT
Topic
Name
3+7 =