Wrong test cases...


  • 0
    D
    # Write your MySQL query statement below
    
    select e1.id, e1.month, (select sum(e2.salary) from employee e2 where e1.id=e2.id and e1.month>=e2.month) salary from employee e1 where e1.month not in (select max(e3.month) from employee e3) order by e1.id asc, e1.month desc
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.