开发者

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

开发者 https://www.devze.com 2023-02-17 08:23 出处:网络
, I have a table EMPLOYEE with these fields: empno, firstnme, midinit, lastname, workdept, phoneno, hiredate, job, edlevel, sex, birthdate, salary, bonus, comm.

,

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

精彩评论

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