mysql - Select most popular tags from database? -


I have a link to two tables at once through the third table

  Sources: ID, name tag: id, name thread_tag_map: threads_id, tag_ id  

Many of its many relationships. I want to select 30 tags which are most popular, which are going to be the first 30 tags with tags_id , which is the highest in thread_tag_map .

  select t. Tag Jen from tags * thread_tag_map ttm ON t.id = ttm.tags_id Group TID TDID) DESC limit 30  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -