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
abc@yahoo.com
abc1@yahoo.com
abc@hotmail.com
abc23@hotmail.com
def@gmail.com
The above should ideally return something as follows:
count EmailDomain
2 yahoo.com
2 hotmail.com
1 gmail.com