You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createtablefen_hao_splitasselect'202107'as ${tmonth_code},t.project_code,d.ac_code,
d.disp_code,d.disp_index,
sum(case when d.isdecris not nullandd.isdecr<>t.isdecr then 0 else m_scale*t.rmb_value end) as ttl_value,
sum(case when date_format(date_code,'yyyyMM')<concat(substr('202107',1,4),'01') andd.isdecris not nullandd.isdecr<>t.isdecr then 0
when date_format(date_code,'yyyyMM')<concat(substr('202107',1,4),'01') then m_scale*t.rmb_value end) as jan_value
from ods_d_pfa_gl_account_df d
left join tmp_ads_fin_pfa_balance_proj_df_00_rt t
on substr(t.account_code,1,4) =d.fin_account_codeor substr(t.account_code,1,6) =d.fin_account_codeor substr(t.account_code,1,8) =d.fin_account_codeor substr(t.account_code,1,4)=split(fin_account_code,';')[0]
where table_type='资产负债表'andd.year_code=substr('202107',1,4) and fiscal_period<='202107'group byt.project_code,d.ac_code,
d.disp_code,d.disp_indexlimit10
;
The text was updated successfully, but these errors were encountered:
详情
环境变量在
SQL
中识别时,会报如图的错误SQL如下:
The text was updated successfully, but these errors were encountered: