疑问? 怎样在order by里使用子查询时,同时查询出Income-OutCome字段的值。
SELECT Name,Sex,WorkYear,InCome-OutComeFROM employees,salaryWHERE salary.EmployeeID=employees.EmployeeIDORDER BYInCome-OutComeDESC-- 等价于SELECT Name,Sex,WorkYearFROM employeesORDER BY(SELECT InCome-OutComeFROM salaryWHERE salary.EmployeeID=employees.EmployeeID)DESC
