Hi All,
I'm new to DB2 and have this strange problem.
I'm running this query
select legs.leg_n
, legs.insmt_n
, legs.CNTPY_M
, lts.time_seris_n
from legs left outer join leg_time_seris lts on
legs.leg_n=lts.leg_n
and getting this error
com.ibm.db.DataException: A
database manager error occurred. : [IBM][CLI Driver][DB2/SUN]
SQL0206N "LTS.TIME_SERIS_N" is not valid in the context where
it is used. SQLSTATE=42703
TIME_SERIS_N is the primary key column on table LEG_TIME_SERIS
If I exclude TIME_SERIS_N then the query runs ok. What is wrong here?
The db2 version is DB2 V8.1.0.36
Thanks for your time,
Jairaj