开发者

SQL query to retrieve all employees in descending order of total bonus plus commission

,

I have a table EMPLOYEE with these fields:

    empno, firstnme, midinit, lastname, workdept, phoneno, hiredate, job, edlevel, sex, birthdate, salary, bonus, comm.

Do you know how to create an SQL query to retrieve all employees from the john.employee table in descending order of total bonus plus commission (BONUS and COMM a开发者_StackOverflow中文版ttributes).

Thank you!


This isn't an olap question, this is a simple SQL statement.

SELECT   ...
FROM     employee
ORDER BY bonus+comm DESC
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜