我想在本月收入的后面增加一个同期收入但是数据库中并没有同期指标,仅有每个月的收入请问我应该怎么写呢这是现在的sqlselect month_id, nonoil_income as "当月收入" from ywgl_csrq_fy_hy where month_id between substr(current_date() , 1 ,4)||'01' and translate(substr(current_date() , 1 ,7),'-','')
selectcalmonth as '月份',by_income as '本月收入',tq_income as '同期收入',tb_income_rate as '收入同比',hb_income_rate as '收入环比'from app_db.yw_mwhere calmonth =translate(substr(current_date() , 1 ,7),'-','')现在是只取本月的数,我想改成取本年所有月的数据,应该怎么改呢?