Skip to content
Advertisement

nested join in Db2

Folks, what is wrong with this query i get error stating below in DB2 LUW.

[42703][-206] “d.sales” is not valid in the context where it is used.. SQLCODE=-206, SQLSTATE=42703, DRIVER=4.23.42 [56098][-727] An error occurred during implicit system action type “2”. Information returned for the error includes SQLCODE “-206”, SQLSTATE “42703” and message tokens “d.sales”.. SQLCODE=-727, SQLSTATE=56098, DRIVER=4.23.42

Advertisement

Answer

Look at your query:

You forgot to select salesid in your subquery d

You need to add either s.salesid or a.salesid

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement