
Keenan R. answered 04/29/19
Tutor
5
(129)
Experienced tutor in Computer Science
If I am understanding the question correctly, you are looking for the following:
SELECT id, CASE
WHEN type = 'P' THEN amount
WHEN type = 'N' THEN -amount
ELSE amount END
FROM report