Du skal oprette alle kombinationer af translations
og translation_languages
i en underforespørgsel. Udfør derefter en LEFT JOIN
til translation_details
om oversættelses-id og sprog.
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