Emp table has EmoID , FirstName , LastName , MangerId , Salary , HierDate
Department Table Has DeptId , DeptName
I Want The query for Grouping the salary in each dept and display if its > 30k
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manoj BhoirPosted Jul 19, 2015, 9:46 AM
Select * From (Select A.DeptID, DeptName, SUM(A.Salary)As Salary From EMP A
INNER JOIN Department B
ON A.DeptId = B.DeptID
Group BY A.DeptID, DeptName)X
Where X.Salary > 30000
Vinodh NarayananPosted Jul 19, 2015, 9:17 AM