I have read this statement from Oracle8i DBA SQL and PL/SQL Study guide by Chip Dawes (Page # 31), "If you have used any operators on columns in the SELECT clause, the ORDER BY clause should have them as well". The following code seems to work fine.
================================================================
SELECT 'Name: ' | | ename "Employee Name", sal *10 "Salary", deptno
FROM emp
WHERE deptno = 30
ORDER BY deptno desc;
================================================================
Any comments???
------------------
Muhammad Farooq
Sun Certified Programmer for
Java 2 Platform