HAVING without GROUP BY

后端 未结 4 1777
失恋的感觉
失恋的感觉 2020-11-28 13:13
  1. Is the following possible according to standard(!) SQL?
  2. What minimal changes should be neccessary in order to be conforming to the standard (if it wasn\'t alr
4条回答
  •  半阙折子戏
    2020-11-28 13:48

    Yes We can write the SQL query without Group by but write the aggregate function in our query.

    select sum(Salary) from ibs having max(Salary)>1000
    

提交回复
热议问题