I have the following query:
select col1, col2
from ...
where...
which gives:
col1  col2
5
       17
4       5
12
5
       20
4      17
2       3
I want to convert it to one column with no duplicates as follows:
col3
5
17
4
12
20
2
3
How can I do that?
I read this topic Combine two columns and add into one new column but it's not what I need... operator || won't help here.
Edit: col3 is simply a list of all numbers that appear in col2 and col1.
 
     
     
     
    