sql - How to change arrays into rows - TagMerge
1How to change arrays into rowsHow to change arrays into rows

How to change arrays into rows

Asked 1 years ago
1
1 answers

Consider below approach

select t.* except(entered_date, status),
  entered_date, status
from your_table t, 
t.entered_date as entered_date with offset
join t.status as status with offset
using(offset)    

if applied to sample data in your question - output is

enter image description here

Source: link

Recent Questions on sql

    Programming Languages