That may be the worst title I’ve ever written!
I have a table with entries similar to this:
1 ¦ ABC1 ¦ 21
2 ¦ DEF2 ¦ 43
3 ¦ DEF2 ¦ 44
4 ¦ XYZ9 ¦ 18
5 ¦ ABC1 ¦ 19
I’m trying to phrase a statement in MySQL that would return just:
ABC1 ¦ 19
XYZ9 ¦ 18
DEF2 ¦ 44
…so the latest individual total for each unique code. I’m new to the language and can’t crack the syntax!
Hopefully that makes sense but please feel free to ask any clarifying questions (of course!).
Many thanks,
Jon
Assuming table with column
id,name,count