Problem with ORDER BY
Hi,
I have a big problem with ordering records.
SQL QUERY:
SELECT sum(
CASE WHEN hodnota =1
THEN allxx
ELSE 0
END ) AS hodnotaxxx, (
sum( allxx ) + sum( allx )
) AS complete, number
FROM tablex
WHERE hodnota <=4
AND (
number =95
OR number =58
)
GROUP BY number
ORDER BY complete, hodnotaxxx, number
and result:
http://www.gymck.cz/~venus/mysql/ (here you can see table properties and data)
The problem is that it sort data only by first argument (in this - only by complete) and the second argument (in this - hodnotaxxx) is ignore. I don´t know why.
Thank you for your help.
Martin
Subject
Views
Written By
Posted
Problem with ORDER BY
3111
April 17, 2005 09:32AM
1960
June 30, 2005 05:50PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.