QUOTE (lignumaqua @ December 01, 2013 02:30 am) | ||
It's just luck that the SQLite Manager version appears to give the right answers, it quite likely doesn't! The problem, as Lil Devil said, is that the Max() only returns the Max() data for its own field, it does *not* return the matching data for the other field from the same rows, they could be any values. ![]() You have to use INNER JOINS to do it, first work out the max() value for each letter, then use that as a joined table to find the matching row in the main table. Try this:
|
Why does the SQL display the correct results in SQLite outside of GSAK ?