so i was wondering if there's anyone who can help me sort something out.
i have an SQL query that should show the details of a person (a search feature) that has a subquery inside an Inner Join, and the subquery is a Select statement.
Currently there's no problem with the sql query, but when i test the query as db2 i have this error:
An ON clause associated with a JOIN operator or in a MERGE statement is not valid.. SQLCODE=-338, SQLSTATE=42972, DRIVER=4.11.69
So, I'm asking, are there some ways to rewrite the query without having to use a subquery within the join statement?
I'm using DB2 For Linux, UNIX and Windows and v9.7
enlighten me
