We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb9d06 commit 596be6aCopy full SHA for 596be6a
SQL/Find_All_Unique_Email_Domains.sql
@@ -0,0 +1,5 @@
1
+SELECT DISTINCT SUBSTRING(email from POSITION('@' in email) + 1) as email_domain, COUNT(*)
2
+FROM Emails
3
+WHERE RIGHT(email, 4) = '.com'
4
+GROUP BY email_domain
5
+ORDER BY email_domain, COUNT(*) desc
0 commit comments