In this blog post, let’s learn about the error message “4156 Inner relation of left join cannot be embedded commandname. 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
4156 Inner relation of left join cannot be embedded commandname. Tables in scope: name.
Reason for the Error
You attempted to perform a left join using the result set of an embedded UPDATE or DELETE as the inner relation.
Solution
Modify the statement and resubmit