looking TO GET THE MAX() VALUE from a table like the one below. Here is what the table looks like
LEVEL ACCOUNTNAME
0.11 namea
1.25 namea
14.55 namea
3.52 namea
HER IS THE CODE THAT I USE:
SELECT
MAX(LEVEL) AS HIGHESTLEVEL, ACCOUNTNAME
FROM TABLE
GROUP BY ACCOUNTNAME
however my returned answer is
LEVEL ACCOUNTNAME
3.52 namea
I should be getting 14.55 not 3.52. anyone know what is going on?