Generate a sequence of numbers for a certain interval. In postgresql there is a function generate_series. You need to write something similar to sql for vertica
| id | low_esn | high_esn |
|---|---|---|
| 101 | 10 | 13 |
| 102 | 5 | 7 |
There should be a result:
| id | value |
|---|---|
| 101 | 10 |
| 101 | 11 |
| 101 | 12 |
| 101 | 13 |
| 102 | 5 |
| 102 | 6 |
| 102 | 7 |
You can use 2 way for it:
I hope that these links help you.