arrays - Query to find most common names in content, from a defined list -
I am struggling to rank blog posts based on the popularity of those names that appear in them .
What I'm trying to achieve here: I have a blog where celebrity names are commonly seen. I would like to count how many times these Khanna names appear in the title of the blog, and rank the output by the most popular celebrity (name is the most visible.)
My thoughts are a query Which is to run, how many times appear in namespace names (table of celebrity names) from a table. This is where I am having trouble.
The best query can not be ascertained for any help. Do I Need To Use Array?
Maybe something like - adjust your bid for SQL.
Select c.name, count (*) as events occurring from celebrities '%' + c.name + '%' group to c.name
Comments
Post a Comment