How to get a list of all unique values from two columns?

Worked fine for me, with no bugs, but I was looking for a more or less automated solution.