Open KrzysztofI opened 3 years ago
This is not a valid sql query
yes, please find correct below: select subject ||' ('||coalesce(c1.value,'')||')' from issues LEFT JOIN custom_values c1 ON c1.customized_id=issues.id AND c1.custom_field_id=21 where tracker_id = 9 and status_id = 2 union all select '---- Used before----' union all select distinct c2.value from custom_values c2 where c2.custom_field_id=31 and c2.value not in ( select subject ||' ('||coalesce(c1.value,'')||')' from issues LEFT JOIN custom_values c1 ON c1.customized_id=issues.id AND c1.custom_field_id=21 where tracker_id = 9 and status_id = 2) ;
Query: select subject ||' ('||coalesce(c1.value,'')||')' from issues LEFT JOIN custom_values c1 ON c1.customized_id=issues.id AND c1.custom_field_id=21 where tracker_id = 9 and status_id = 2 select '---- User beafore ----' union all union all select distinct c2.value from custom_values c2 where c2.custom_field_id=31 and c2.value not in ( select subject ||' ('||coalesce(c1.value,'')||')' from issues LEFT JOIN custom_values c1 ON c1.customized_id=issues.id AND c1.custom_field_id=21 where tracker_id = 9 and status_id = 2) ;
Give exception: