Skip to content
Advertisement

Presto SQL – Looking to explode Table of IDs to include predefined row numbers

Apologies if this title was a bit confusing. It’s tough to articulate this problem in a sentence.

Here is my current table

I’d like to explode this table to look like this:

Any help would be much appreciated.

Advertisement

Answer

You want a cross join:

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