-- AND NOT (calc_status = 'CLOSED' AND flag = 'REMAINDER')
--GROUPBY
-- version,
-- iter,
-- oseas
--
-- select distinct version from rlarp.osm_pool
--
--
--
--
--SELECT
-- oseas,
-- to_char(CASE WHEN extract(month FROM o.odate) >= 6 THEN -5 ELSE 7 END + extract(month FROM o.odate),'FM00')||' - '||to_char(o.odate,'TMMon') order_month,
-- r_currency,
-- r_rate,
-- sum(fb_val_loc) value_loc
--FROM
-- rlarp.osmf_dev o
--WHERE
-- oseas >= 2020
-- --AND fs_line = '41010'
-- --AND odate < '2020-04-01'
--GROUPBY
-- oseas,
-- to_char(CASE WHEN extract(month FROM o.odate) >= 6 THEN -5 ELSE 7 END + extract(month FROM o.odate),'FM00')||' - '||to_char(o.odate,'TMMon'),