Access SQL: How do I group by a part of string after @? -
i have list of emails:
1elelje@apple.com 2sfhwef@banana.com 3odnwoaetge@peach.com 4oientao@apple.com 5ow@peach.com
how group @apple.com @banana.com @peach.com? using ms access...
thanks, jennifer.
you want extract domain email. uses string functions:
select mid(email, instr(email, '@'), 100), count(*) t group mid(email, instr(email, '@'), 100);
Comments
Post a Comment