Answers for "show only distinct values sql"

SQL
2

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)
Posted by: Guest on September-24-2020
0

select only distinct values another table

INSERT INTO Table2(Id) SELECT DISTINCT Id FROM Table1 WHERE Id NOT IN(SELECT Id FROM Table2);
Posted by: Guest on May-01-2021

Code answers related to "show only distinct values sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language