Inactive Tutor answered 04/29/19
Tutor
New to Wyzant
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