I’m trying to implement a tagging system on a project. If a user posts something on my website, they should ‘tag’ (categorize) the item appropriately. So I came across this topic on SO: [Best practise for storing tags in a database]
So the first step is the database design i.e. create 3 tables, one for the post details, one for the tag details, and one to map the post and tag tables.
My question is, how would you query the tables if you wanted to search the database for something like, “10 turtles in a row” (title) and “turtles, gimmicks, morals” as the tags, with the third table mapping them? What is this process called, other than a 1:* (one-to-many) relational scheme?
I tried a variety of SELECT statements which were not looking optimal. I don’t even know what to search for (I have a range of database books on my shelf). Can anyone help?