In the past I've used either the explode function(sql) or unnest in (bigquery) to expand one row into several. For instance I've transformed the current data row: into the following:
Does anyone know if snowflake sql has a function which allows me to do this? I can't seem to find one
You can use
generator()
:I'm a little baffled on why you think you would do this with
explode()
orunnest()
in another database. The key idea is generating the series, I think, not turning it into rows.