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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manoj BhoirRank #599 · 4K reputationPosted Jul 19, 2015, 5:46 AM EDT
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 NarayananRank #175 · 13.8K reputationPosted Jul 19, 2015, 5:17 AM EDT