you can try this way as well !
select FirstName,E.DepartmentName,BaseRate,EB.avgSAL
From DimEmployee E
inner join
(select avg(BaseRate) As avgSAL,DepartmentName
from DimEmployee
group by DepartmentName ) EB
ON E.DepartmentName = Eb.DepartmentName
where E.BaseRate > Eb.avgSAL