Budete muset vytvořit všechny kombinace translations
a translation_languages
v dílčím dotazu. Poté proveďte LEFT JOIN
na translation_details
na ID překladu a jazyk.
SELECT
*
FROM
(
SELECT *
FROM translations AS t
CROSS JOIN translation_languages AS tl
) AS dt
LEFT JOIN translation_details AS td ON td.translation_id = dt.id
AND td.language_code = dt.language_code