kasavazala
Programmer
I am using max() function and want to know 2 values associated with the max. This is my query
BE
=====
Tnum BE_id BET
---------------------
1 1 45
1 2 3
1 3 6
1 4 54
1 5 1
I want to get Max(BE_id) and BET and Tnum associated with it.
Result
================
Tnum BE_id BET
---------------------
1 5 1
Can i have an SQL for this without having to join the table with itself.
Any help is greatly appreciated..
Thanks in advance
BE
=====
Tnum BE_id BET
---------------------
1 1 45
1 2 3
1 3 6
1 4 54
1 5 1
I want to get Max(BE_id) and BET and Tnum associated with it.
Result
================
Tnum BE_id BET
---------------------
1 5 1
Can i have an SQL for this without having to join the table with itself.
Any help is greatly appreciated..
Thanks in advance