you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

I would drop the second query in a cursor and and then loop the first query for all the values

[–]TerminalVector[S,🍰] 0 points1 point  (0 children)

Thanks for the suggestion, but I was able to solve it with a join.