SELECT id, amount FROM report
I need amount to be amount if report.type=\'P\' and -amount if
amount
report.type=\'P\'
-amount
SELECT id, amount FROM report WHERE type='P' UNION SELECT id, (amount * -1) AS amount FROM report WHERE type = 'N' ORDER BY id;