Once again missed something
This commit is contained in:
@@ -343,6 +343,9 @@ SELECT
|
|||||||
(SELECT SUM((elem.value ->> 'value')::numeric)
|
(SELECT SUM((elem.value ->> 'value')::numeric)
|
||||||
FROM jsonb_array_elements(ins.actions) AS elem
|
FROM jsonb_array_elements(ins.actions) AS elem
|
||||||
WHERE (elem.value ->> 'action_type') = 'lead') AS lead,
|
WHERE (elem.value ->> 'action_type') = 'lead') AS lead,
|
||||||
|
(SELECT sum((value->>'value')::numeric)
|
||||||
|
FROM jsonb_array_elements(actions)
|
||||||
|
WHERE value->>'action_type' = 'landing_page_view') AS landing_page_view,
|
||||||
spend,
|
spend,
|
||||||
frequency,
|
frequency,
|
||||||
cpc,
|
cpc,
|
||||||
|
|||||||
Reference in New Issue
Block a user