with t1 as
(select sum(amount) amount from dual
where fdate between '${start_date }' and '${end_date}'),
t2 as
(select sum(amount) amount_last_year from dual
where fdate between to_date('${start_date }', 'yyyyMM') + interval '-1 year' and to_date('${end_date}', 'yyyyMM') + interval '-1 year')
select (amount-amount_last_year)/amount_last_year 同比 from t1
left t2 on 1=1