SUM(
CASE WHEN rmstrancde IN ('50','51','52','53')
THEN (0 - ABS(DISTINCT rmstranamt))
WHEN rmstrancde IN ('55','56','57','58')
THEN ABS(DISTINCT rmstranamt)
ELSE
DISTINCT rmstranamt
END
) As rmstranamt
------ "There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.