I have a query 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 "v1", "v2" and "v3" fields?
Results like this:
ID | Maior_v1 | Maior_v2 |
54384 | 8 | 2.55 |
54385 | 5.6 | 3.24 |
Is there any way? How to do?