Hi
I'm sure there's query for this kind of operation, but I just can't seem to get it.
I have a table like this:
product_id | saved_by | deleted_by | accepted_by | published_by
-----------+----------+------------+-------------+-------------
1 | user1 | | user1 |
-----------+----------+------------+-------------+-------------
2 | | user2 | |
-----------+----------+------------+-------------+-------------
3 | user2 | | | user3
-----------+----------+------------+-------------+-------------
4 | | | user1 | user4
-----------+----------+------------+-------------+-------------
And I'm trying to create a query that would select all the users in those fields distinctly resulting in something like this:
users
------
user1
user2
user3
user4
Any pointers?