sql - Why am I geting this table not found error? "object ___ does not exist" -



sql - Why am I geting this table not found error? "object ___ does not exist" -

i'm trying run next query. working fine until added column gpv.i_val

the error i'm receiving "object gpv not exist" when does. i'm assuming simple can't seem place finger on it.

select gpv.i_val, gcv.i_pln, gcv.c_typ_cov, gcv.d_eff, gcv.d_eff_pln, gcv.c_sta, gcv.d_sta, gcv.c_mde_bft_fst, gcv.a_bft_fst, gcv.c_mde_bft_sec, gcv.a_bft_sec, gcv.c_mde_bft_trd, gcv.a_bft_trd, gcv.p_cre_hom, gcv.c_cl_rsk, gpv.c_val, gcv.c_pol pearl_p.tltc906_gcv gcv, pearl_p.tltc912_gpv gpv gcv.i_pln > 0 , gcv.i_pln = gpv.i_pln , gcv.c_pol between 'lac100001' , 'lac100004' union select gpv.i_val, gcv.i_pln, gcv.c_typ_cov, gcv.d_eff, gcv.d_eff_pln, gcv.c_sta, gcv.d_sta, gcv.c_mde_bft_fst, gcv.a_bft_fst, gcv.c_mde_bft_sec, gcv.a_bft_sec, gcv.c_mde_bft_trd, gcv.a_bft_trd, gcv.p_cre_hom, gcv.c_cl_rsk, gcv.c_pol, '' pearl_p.tltc906_gcv gcv not exists( select 1 pearl_p.tltc906_gcv gcv, pearl_p.tltc912_gpv gpv gcv.i_pln > 0 , gcv.i_pln = gpv.i_pln )

your sec select in union references gpv, table not included?

select gpv.i_val, .... .... '' pearl_p.tltc906_gcv gcv ....

sql

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -