Great! It works!
I only wanna add more columns from table values, but don't seem able to do so:
SELECT max(class.ID) as x, class.name, max(values.number) as z, values.othercolumn from ...
What is wrong?
rj
I'm trying to optimize the following query:
SELECT class.ID, class.name, values.number
from class, values
where class.ID=values.ID
order by values.number DESC
This gives me something like this (really much more rows than are shown)
14 John 96
4 Chris 95
13 Jeff 95
17 Susan 93
14 John 92
4...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.