Krushna D. answered 01/01/22
Be a MSSQL expert developer
select emp.first_name,emp.Last_name,emp.Salary,emp.FromDate,emp.Todate
from Employee emp
inner join (select First_Name,Last_Name,avg(salary) as avgsalary from Employee emp1 group by First_Name,Last_Name)avgd
on emp.First_Name=avg.First_Name and emp.Last_Name=avg.Last_Name and emp.Salary>avgd.avgsalary
Krushna D.
in the table multiple entries for a employee .need to find avg against of each employee. then join with the main table with employee as emp.first_name=avg.first_name and emp.last_name=avg.last_name and emp.salary>avg.avgsalary01/01/22