When running this query:
SELECT id,col1,col2
FROM app_data.content_cards
I get a table like this:
+----+-------------------------------+--------+
| id | col1 | col2 |
+----+-------------------------------+--------+
| 90 | {'one', 'two', 'three'} | {1,2,3}|
+----+-------------------------------+--------+
| 91 | {'abc', 'def'} | {1,2} |
+----+-------------------------------+--------+
| 92 | {'asdf} | {1} |
+----+-------------------------------+--------+
What I want to do now is get this same information but with the arrays splitted into rows so I get a result like this:
+----+---------------------+-------+
| id | col1 | col2 |
+----+---------------------+-------+
| 90 | one | 1 |
+----+---------------------+-------+
| 90 | two | 2 |
+----+---------------------+-------+
| 90 | three | 3 |
+----+---------------------+-------+
| 91 | abc | 1 |
+----+---------------------+-------+
| 91 | def | 2 |
+----+---------------------+-------+
| 92 | asdf | 1 |
+----+---------------------+-------+
As you can see I don't want to get rows with null value in "col1" and "col2".
Many thanks!