sql - Create view with Union give error in IBM i -


Hi, I am trying to add one table data to another to create the required data sets. I am doing union with Green Screen STRSQL. It gives an error message: Column required list Add 'Seepiaif, you do not need to do anything, each field Legneth and Attibuts'm not here for the same but so what.

  select LINTOT, ODORD #, ODSEQ #, ODLSTC, ODORDD, ODORDT, see as ODPRLC to astccdta.eoddetails, ODPRT #, ODSHP #, ODNTU $, astccdta. eoddetaila UNION selection LINTOT, OUORD #, OUSEQ #, OULSTC, OUORDD, OUORDT, OUPRLC, OUPRT #, OUSHP #, OUNTU $, from OURQSD from ODRQSD astccdta.eoddetailh  

the first thing to try this column to add lists: (make LINTOT

  view astccdta.eoddetails For, ODD #, Odsack #, ODLSTC, ODORD, Oderst, ODPRLC, ODDRT #, ODSHP #, ODEN Q $, ODQQSD) Select Lintot, Oder #, Odseek #, ODLSTC, ODORD, Oderst, ODPRLC, ODDRT #, ODSPH #, Odentu $, OCDQSD from astccdta.eoddetailaUnion Select Linutaut, OWR #, OUSEQ #, OwlSTC , OWARD, OND, OUPRLC, OUPRT #, OUSHP #, OUNTU $, OCRQDD from XKDDAOADDAT;  

It is probably necessary for STRSQL

DB2 definitely accepts ideas without the obvious column name

EDIT: ..

You may also be able to do this are: