Hi All,
Rookie question here I think. Here is the basic SQL:
SELECT
seg.acct_per,
seg.acct_yr,
seg.base_amt_debit - seg.base_amt_credit NET_TOTAL,
seg.cost_cntr_no,
seg.gl_acct_no
FROM
seg_acct_per_ttl seg
WHERE
seg.seg_no = 3 and
seg.data_type_cd = 'ACTUAL';
I would like to have the NET_TOTAL be multiplied by a negative 1 (-1) only of the seg.gl_acct_no is in the 40000 range. It must be possible but I'm stumbling a lot. Can somebody lend a hand?
Thanks!
-Striker
Rookie question here I think. Here is the basic SQL:
SELECT
seg.acct_per,
seg.acct_yr,
seg.base_amt_debit - seg.base_amt_credit NET_TOTAL,
seg.cost_cntr_no,
seg.gl_acct_no
FROM
seg_acct_per_ttl seg
WHERE
seg.seg_no = 3 and
seg.data_type_cd = 'ACTUAL';
I would like to have the NET_TOTAL be multiplied by a negative 1 (-1) only of the seg.gl_acct_no is in the 40000 range. It must be possible but I'm stumbling a lot. Can somebody lend a hand?
Thanks!
-Striker