Answer the question
In order to leave comments, you need to log in
How to sum array field values in postgresql?
Here is a request
with rec as (select "recordId" as rec_id from catalog_12_links where "catalogRecordId"=1) select field7[1] as s from catalog_12_data where "id" in (select rec_id from rec) and field4 = '{2}';
s
---
2
2
(2 rows)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question