Not able to run/resolve this below query in mysql 8.0
Query: sum(decode(billflage,'N',0,instlamt) - nvl(recdamt,0)) WHERE DUEDATE < SYSDATE
with value: sum(decode('Y','N',0,2322 - nvl(2322,0))) Where 8/5/2016 12:00:00 < 30/1/2020 12:00:00
Please provide the output or how it will work in mysql 8.0