sql - ORA-00904: "from$_subquery$_014"."column_name": invalid identifier -
after migration of oracle db im getting below error:
ora-00904: "from$_subquery$_014"."trn_terminal_software_version": invalid identifier below query:
select * ( select sum(trn_amt) amount, sum(trn_count) count , timetype period , seq , row_number() on (order vw.seq desc) rownumber ysd_store_forward_v vw inner join store_dimension std on vw.stm_id=std.std_id inner join card_type_dimension ctd on vw.ctd_card_abbv=ctd.ctd_card_abbv inner join stpldbtemp.store_group_relation sgr on std.std_id= sgr.sgr_store_id inner join location_dimension ld on ld.lod_id=std.std_location_id start_date between 20170405 , 20170405 , std.std_corp_id ='1939' , sgr.sgr_sgm_id ='2160' , ctd.ctd_card_abbv in ('ve','vi','vs','vd','ax','ae','md','mc','mf','xx' ,'db','jb','nv','ds','eb','ebc','ebf','ebw','vf','vg','wx','dc','gf','pl' ,'pw','nm','bg','gc','fl','fo','ft','fw','inv','iv','in','cp') , ld.lod_country_id = 1 group timetype , seq order 4 );
i'm not using column in query still i'm getting error, please me out ysd_store_forward_v view using materialized view contain trn_terminal_software_version column working fine.
Comments
Post a Comment