Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Thank you for this, it helped me solve my issue. My understanding of how it works is that 1. we ensure that the added foos are ordered the same as the old bars when these bars are sorted by their ID. 2. foo.id are generated sequentially so the new foos can be ordered by foo.id to get the same order as ordering the bars by bar.id. 3. We store these orderings using ROW_NUMBER() in the enumerate_x tables. 4. We can then join on the ROW_NUMBER() to achieve the zip functionality I mentioned in my question. Commented Feb 10, 2023 at 9:56