I am accessing an old oracle database that contains many different tables and lookup ID fields. I'm trying to use one big select statement in a standalone table source edit query layer to combine the data I need into one usable table that I can then geocode within ArcGIS Pro 2.0.7.
There is a zip code lookup field in one of the main tables called LOC_ZIP_SEQ. This lookup field is null in a couple of the records that I need. I only have read only access to the data so I'm unable to change the original data table and I still need to incorporate those records with null values.
The WHERE statement LOC_ZIP_SEQ=ZIP_SEQ should in theory return the corresponding ZIP_CODE value, but it effectively filters out the records that contain the null lookup field. I do get all the other records. So the rest of the code is working as intended.
I've tried constructing the WHERE statement like (LOC_ZIP_SEQ=ZIP_SEQ OR LOC_ZIP_SEQ IS NULL), and other similar arrangements, but I I get an error that says failed to retried a page of rows.
I feel like this should be basic SQL 101, but I'm out of ideas so any input would be great.
Thanks!
Erik