0
I have a table with transport voucher data of my company employees:
nome ! valor1 ! valor2 ! valor3
teste1 ! 6.50 ! 0.00 ! 0.00
teste2 ! 4.30 ! 2.80 ! 1.10
teste3 ! 8.40 ! 1.10 ! 0.00
teste4 ! 2.85 ! 1.10 ! 0.00
where it is possible for the employee to take up to 3 bus lines to come to work, so I have these three columns.
The problem I’m going through is this, I want to return the data of the three columns without repetition, where I have all the values of the employees' bus lines.
I need to return if possible in a single column the data without repeating, no values '0.00' and ascending order :
outworking
1.10
2.80
2.85
4.30
6.50
8.40
You can make 3 selects and use the
union
.– rbz