3
I have an appointment that displays the following result:
ID | v1 | v2 | v3 |
54384 | 2.4 | 8 | 2.55 |
54385 | 5.6 | 1 | 3.24 |
How to do, in a SELECT
, the selection of only the two largest values between the fields "v1", "v2" and "v3"?
Result thus:
ID | Maior_v1 | Maior_v2 |
54384 | 8 | 2.55 |
54385 | 5.6 | 3.24 |
Are there any way? How to do?
I liked the logic of catching the smallest of the biggest.
– gmsantos