can anyone write a sql query ? without using view or CTE.
what are the possible methods to derive the result ?
Here is the table
---------+---------+---------+---------+---------+---------+-
NAME ACCT_NR TOT_AMT
---------+---------+---------+---------+---------+---------+-
RAMAN 517000000 500.000000000
RAMAN 517000001 63.000000000
RAMAN 517000002 110.000000000
RAMAN 517000003 170.000000000
SURESH 517000004 210.000000000
SURESH 517000000 46.000000000
SURESH 517000001 83.000000000
DINESH 517000002 615.000000000
DINESH 517000003 190.000000000
I want the name of the person,account num,amt having the maximum amt.
Result should be :
RAMAN 517000000 500.000000000
SURESH 517000004 210.000000000
DINESH 517000002 615.000000000