Converting a SQL statement into a x++ Query, QueryBuildDataSource

Is “someValue” really the same value? If so, you can greatly simplify your logic. It says that Table1.Field must be ‘someValue’ and the value of Table2.Field is irrelevant.