MySQL Forums
Forum List  »  Newbie

Re: How to extract string frequencies from an email database?
Posted by: Peter Brawley
Date: October 20, 2017 06:55PM

The first query is easy, assuming a table email(addr, ...) ...

select addr, count(*) as N
from email
group by addr
order by N desc limit 50;

The second is harder. Simplest solution would be to write a small PHP script that sucks up each email msg into an array of words (eg strings separated by whitespace) and inserts them into a wprdstable. Then you could write a query like the above against the words table.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to extract string frequencies from an email database?
October 20, 2017 06:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.