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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -