Hello, here is my code for you refer.
query10
SELECT * FROM "Shipments" WHERE id in ( {{query8.data.map(it=>`'${it}'`).join(",")}} )
query8
1 Like
Hello,
In Postgres queries, I often use =ANY({{array_variable}})
. I found this stack overflow response's explanation of IN vs. ANY to be pretty helpful. sql - IN vs ANY operator in PostgreSQL - Stack Overflow
3 Likes
it works for me. Many thanks
1 Like