Answers for "case when sum mysql"

SQL
0

Mysql Case sum

select sum(CASE WHEN payment_status = 'PAID' THEN paid_amount else 0 end) as paid,
       sum(CASE WHEN payment_status = 'Not Paid' THEN total_amount_due else 0 end) as due
from monthly_fee
Posted by: Guest on September-24-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language