The task is as follows: print a SELECT column with a sum and after it the whole table again. How to do it?
I try the following code:
SELECT salary*(1+commission_pct) as "sum", * FROM EMPLOYEES WHERE not commission_pct is null ORDER BY "sum" Error SQL Error while processing results: ORA-00936: missing expression
The salary and commission_pct columns in EMPLOYEES are present.
WHERE NOT <столбец> IS NULLis a valid syntax? I am not familiar with the PL / SQL dialect, but vague doubts on this account are somehow plagued. - YaantSELECT salary*(1+commission_pct) as 'sum' FROM EMPLOYEES WHERE not commission_pct is null ORDER BY 'sum'WHERE <столбец> IS NOT NULL- Yaant