SyntaxFix
Write A Post
Hire A Developer
Questions
This should work:
select id ,action_heading ,case when action_type='Income' then action_amount else 0 end ,case when action_type='Expense' then expense_amount else 0 end from tbl_transaction