I have a table with a list of emails. How do I retrieve the count value and the unique domain names from the table?
For example,
EmailTable
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
The above should ideally return something as follows:
count EmailDomain
2 yahoo.com
2 hotmail.com
1 gmail.com