我有一张桌子
NAME | BONUS
----------------
anil | 40
suresh | 25
ramesh | 44
anil | 35
anil | 15
我想删除具有name = anil and bonus < max bonus of anil
OUTPUT
anil | 40
suresh | 25
ramesh | 44
我试过查询:
delete from table where name like 'anil' and bonus < (select max(bonus)
from table where name like 'anil';
但它给出了一个语法错误。任何人都可以帮忙。我会很感激的。