Once again missed something
This commit is contained in:
@@ -343,6 +343,9 @@ SELECT
|
||||
(SELECT SUM((elem.value ->> 'value')::numeric)
|
||||
FROM jsonb_array_elements(ins.actions) AS elem
|
||||
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,
|
||||
frequency,
|
||||
cpc,
|
||||
|
||||
Reference in New Issue
Block a user