Forum Moderators: coopster
Thanks Eric.
Okay I've been experimenting and something else occured to me:
Is it possible to use ORDER BY with a condition like...
ORDER BY `years-in-college` DESC WHERE (or WHEN) something.
What I'm trying to do is see if I can sort query results by something and then sort them by some other criteria like alphbetical order.
Actually maybe something like:
"SELECT `co-workers`, SUM(`years-in-college` + `years-with-job`/ age) AS totalexperience FROM myoffice GROUP BY age ORDER BY totalexperience DESC";
Does that make sense?
Would the results be listed first by age and then by totalexperience?