Need help with SQL for ranking search results
问题 I am trying to build a tiny exercise search engine using mysql. Each exercise can have an arbitrary number of search tags. Here is my data structure: TABLE exercises ID title TABLE searchtags ID title TABLE exerciseSearchtags exerciseID -> exercises.ID searchtagID -> searchtags.ID ...where exerciseSearchtags is a many to many join table expressing the relationship between exercises and searchtags. The search engine accepts an unknown number of user inputted keywords. I would like to rank