edited by
207 views
1 votes
1 votes

What is the output of this query for the following table,  with column name- emp name, empsal,  dept no and job respectively..!! 

I'm bit confuse about the working pattern of group by claus.. 

Because  dept 10 having both manager and engineer so e1 will be display or not? 

Select dept no from emp 

Where job ='manager'

Group by dept no. 

Having avg(sal)>2000;

e1 2000 10 manager
e2 3000 10 engineer
e3 3000 20 manager
e4 4000 20 manager
e5 4000 30 doctor
edited by

Please log in or register to answer this question.

No related questions found