000501: The input tables are not from the same workspace.

Description

When using the Make Query Table tool, all input feature classes or tables must be from the same input workspace. This tool accepts data from an enterprise geodatabase, a file geodatabase, or an OLE DB connection.

Solution

Ensure that all input tables are from the same workspace.