Skip to content
Advertisement

how to write select query in PostgreSQL to iterate over an array which is returned by a select query

and this is what it returns:

Now on each of these value, i.e., 1, 3 and 5 I want to run another select query:

Advertisement

Answer

You can join box and products using the any() operator, like so:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement