I have a data like this below :
id start_date end_date col1 col2 col3 col4 col5
issue_2017-09 2017-09-18 2017-09-30 true true true true false
i want to convert data into the following format:
id start_date end_date new_col
issue_2017-09 2017-09-18 2017-09-30 {'col1', 'col2', 'col3', 'col4'}
new_col is created out of the columns [col1, col2, col3, col4, col5] which are true. plus I am using redshift.