Hi guys!
I’ve got a question for you all. I have a MySQL database that stores Jobtitle names for users (both in Icelandic and English). The information is stored with an ID and then the text in Icelandic and text in English. The ID is unique.
Then I have a “Users” table with all the information for each user. There I have a field / column called jobtitles and it stores the unique ID of all the jobtitles the user wants to have. They are stored with comma separator (15,20,65 etc).
Now, I need to build a search engine that can find every instance of JobtitleID = “9” in the jobtitles field in the “Users” table. I can’t just call: “select * from users where jobtitles LIKE ‘%9%'” because then I would also get every jobtitle with the numbers 19, 29, 39, 49, 91, 92 etc.!
So my question is … how can I accomplish this in a neat and effortless way?
With hope of a few responses,
Magnus