Когда я выполнил следующий запрос в Memsql, я получил следующее сообщение:
«Объединение функции с дочерним выбором, который не огражден внутри отправленного запроса», не поддерживается MemSQL Distributed. »
SELECT *
FROM customer_campaigns t45 LEFT OUTER JOIN (SELECT
t164.source_entity_id AS source_entity_id,
t164.destination_entity_id AS destination_entity_id,
t164.status AS STATUS
FROM campaign_mirror_references t164 INNER JOIN
mirror_configurations t160
ON ((t164.mirror_config_id = t160.id) AND
(t160.is_sync = 1))
INNER JOIN customer_campaigns t45
ON (t45.campaign_id = t160.source_campaign_id)
WHERE (t45.cust_profile_id = 416)
UNION DISTINCT SELECT
t164.source_entity_id AS source_entity_id,
t164.destination_entity_id AS destination_entity_id,
t164.status AS STATUS
FROM
campaign_mirror_references t164 INNER JOIN
mirror_configurations t160 ON (
(t164.mirror_config_id = t160.id) AND
(t160.is_sync = 1) AND
(t160.dest_profile_id = 416))) AS SOURCE
ON ((t45.campaign_id = SOURCE.source_entity_id) AND (SOURCE.status <> 2))