Q. Display only the jobs with maximum salary greater than or equal to 3000.


You can understand by seeing this video ---


 


Answer =

SELECT JOB FROM DEPARTMENTS GROUP BY JOB HAVING MAX(SALARY) >= 3000 ;

1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Can we use aggregate functions directly in having / wher clause or should it be nested like :

    Select job form department group by job having salary = ( select max( salary ) from department);

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post