Jump to content

Best way to handle multiple titles in database?


Firestorm ZERO

Recommended Posts

I'm currently planning a database for my site but I'm wondering what is the best way to implement multiple titles?

 

In a table I need to put in the Japanese title for a series. But then there is also the translated name, romanized name and then the localized name. And each one can have multiple names because for example the translated name can be interpreted differently, localized name for each region can be different (North America, Europe, etc) and so forth.

 

I want to put all possible titles so it can be easier for a user to search for a particular series name. But as you can see, it can have as many (or as little) names so I don't think I can separate each one into a column. So what would be the best approach for this?

Link to comment
Share on other sites

two tables.  One table has these columns:

 

Table Name: japanese_titles

 

japanese_id

japanese_titleName

 

 

Table Name: translated_titles

 

trans_id

jap_id

translated_title

translation

 

Right, so trans_id is to keep each row unique. jap_id will match the japanese id from the first table.  Then the translated title is whatever you translated it into, and translation is what language it was translated into.  Then do a query to pull the japanese title id and name from the first table and then pull all the translated titles from the second table where jap_id equals the japanese_id of the first query!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.