*使用解码..
SELECT ENAME, SAL,
DECODE
(
COMM,
COMM >=0, (SELECT COMM FROM EMP WHERE COMM>=0),--I KNOW THIS IS A MISTAKE
'NO COMM'
) COMMISSION
FROM EMP
ORDER BY COMISSION
- 我们可以写算术运算吗
DECODE
这是我遇到的错误
COMM >=0, (SELECT COMM FROM EMP WHERE COMM>=0),
*
ERROR at line 5:
ORA-00907: missing right parenthesis
提前致谢