In this blog post, let’s learn about the error message “4165 Outer relation of right join cannot be stream expression. Tables in scope: name.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
4165 Outer relation of right join cannot be stream expression. Tables in scope: name.
Reason for the Error
You attempted to perform a right join using a stream expression as the outer relation.
Solution
Modify the statement and resubmit