I'm making a database that handles dialogue translation for projects.
I have a project table, a dialogue table, and a translation table.
Each entry in each table has an id column.
- dialogue has a
projectID
column that indicates the project the dialogue is a part of. - translation has a
dialogueID
column that indicates the dialogue entry being translated.
So to help explain this problem, here's a pseudo-query I've constructed:
SELECT *
FROM translation
WHERE (translation.dialogueID refers to dialogue where dialogue.projectID = X)
Basically, I want to fetch all translation entries for project X. Since there's no direct route from project -> translation, I'd have to go through project -> dialogue, then dialogue -> translation. I've opted to just add a projectID
to the translation table in the meantime, but it is a little clunky.