-2
delete from Employee where Salary=(select max(Salary) from Employee)

why is error is showing. can someone help me how to solve it with logic.

1 Answers1

1
DELETE t1.*
FROM Employee t1
JOIN (SELECT MAX(Salary) Salary FROM Employee) t2
where t1.Salary = t2.Salary
Akina
  • 39,301
  • 5
  • 14
  • 25