We help IT Professionals succeed at work.
Get Started

Error in creating a view.

Kamal Agnihotri
on
218 Views
Last Modified: 2017-03-19
I am trying to create a view using the code below and I am getting error, ora-00904: "ACTUAL_END_DATE": invalid identifier.

I have modified the table_Names so that they do not represent the actual tables.

create or replace view reqs_11 as
select i.user_dm8_cd, i.div_cd, i.itmz_ln_lnum, i.actg_ln_lnum, i.hdr_lnum, i.doc_num, i.titl, i.fisc_year, i.doc_dt,
  i.dtyp_cat, i.fund, i.prog_cd, i.psp_cd, i.orig_doc_dt, max(i.last_modf_dt), i.scty_prnc_nm, i.nm_of_prsn, i.stae_of_line,
  i.dtyp_dfnd_hd4, i.rcvd_qy, i.unpr, i.doc_type_cd, i.fund_cd, i.bbfy, i.ebfy, i.dscr, i.ln_desc, i.oplk, i.bdob_cd,
  i.orgn_cd, i.orgn_grp_cd, i.doc_stus, i.clsd_dt, i.rqsd_am, i.clsd_am, i.dllr_am, i.clsd_lnam, i.fisc_mnth, i.acty_cd,
  i.acty_nm, i.asgn_dt, i.ctrc_splt, i.orig_asgt_dt, i.last_asgt_dt, i.bdob_nm, i.uf_requ_date, i.size_of_smal_busn,
  i.addr_cd, i.duns_plus_fr_num, i.perd_perf_stdt, i.perd_perf_endt, i.prod_svc_cd, i.prod_svc_dscr, i.prod_svc_nm,
  i.offc_typ, i.offc_id, dlvr_dt, i.duns_num, i.tax_idnt_num, i.agre_num, i.agre_lnum, i.last_usr_id, i.proj_cd,
  i.user_dm5_cd, i.sec_class_cd, i.doc_key, i.div_nm, i.orgn_grp_nm, i.prog_nm, i.user_dm8_nm, i.orgn_nm, i.cmdt_cd, i.cmdt_nm,
  i.bdob_cat_cd, i.bdob_cat_nm, orgn_clas_cd, orgn_clas_nm, orgn_cat_cd, orgn_cat_nm, sbob_cd, sbob_nm, vend_cd,
  i.vend_nm, i.user_dm1_cd, i.asgt_stus, i.addr_nm, i.sub_proj_cd, i.sub_proj_nm,
  w.mlst_stus as status, w.mlst_num as milestone_number, w.mlst_dscr as description, w.mlst_stdt as start_date,
  w.cmpl_dt as completion_date, w.estm_cmpd_dt as expected_end_date, w.mlst_actl_endt as actual_end_date
from vw_iq i, vw_wkld_asgn w
Where i.doc_key = w.doc_key (+)
Group by i.user_dm8_cd, i.div_cd, i.itmz_ln_lnum, i.actg_ln_lnum, i.hdr_lnum, i.doc_num, i.titl, i.fisc_year, i.doc_dt,
  i.dtyp_cat, i.fund, i.prog_cd, i.psp_cd, i.orig_doc_dt, i.scty_prnc_nm, i.nm_of_prsn, i.stae_of_line,
  i.dtyp_dfnd_hd4, i.rcvd_qy, i.unpr, i.doc_type_cd, i.fund_cd, i.bbfy, i.ebfy, i.dscr, i.ln_desc, i.oplk, i.bdob_cd,
  i.orgn_cd, i.orgn_grp_cd, i.doc_stus, i.clsd_dt, i.rqsd_am, i.clsd_am, i.dllr_am, i.clsd_lnam, i.fisc_mnth, i.acty_cd,
  i.acty_nm, i.asgn_dt, i.ctrc_splt, i.orig_asgt_dt, i.last_asgt_dt, i.bdob_nm, i.uf_requ_date, i.size_of_smal_busn,
  i.addr_cd, i.duns_plus_fr_num, i.perd_perf_stdt, i.perd_perf_endt, i.prod_svc_cd, i.prod_svc_dscr, i.prod_svc_nm,
  i.offc_typ, i.offc_id, dlvr_dt, i.duns_num, i.tax_idnt_num, i.agre_num, i.agre_lnum, i.last_usr_id, i.proj_cd,
  i.user_dm5_cd, i.sec_class_cd, i.doc_key, i.div_nm, i.orgn_grp_nm, i.prog_nm, i.user_dm8_nm, i.orgn_nm, i.cmdt_cd, i.cmdt_nm,
  i.bdob_cat_cd, i.bdob_cat_nm, orgn_clas_cd, orgn_clas_nm, orgn_cat_cd, orgn_cat_nm, sbob_cd, sbob_nm, vend_cd,
  i.vend_nm, i.user_dm1_cd, i.asgt_stus, i.addr_nm, i.sub_proj_cd, i.sub_proj_nm,
  status, milestone_number, description, start_date, completion_date, expected_end_date, actual_end_date;
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2012
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE