Original User: SStrandYes, the env.workspace is a file geodatabase that contains wellresult (which is a point feature class) and westbays (which is a table). If you are saying both need to be tables, I will try adding in a conversion to get the wellresult as a table only and see how it goes.I've also changed up the code a bit, as I've found that the brackets are for personal geodatabases only, and I need things in quotes instead. Going off that help, the code currently looks like this:sqltable = "sqltable_" + InfoRequestNum
inList = "westbays;wellresult"
wellsList = "wellresult.STAID1_T", "STAID1_T";"wellresult.STAID2_T", "STAID2_T";"westbays.STAID4", "STAID4"
arcpy.MakeQueryTable_management(inList, sqltable, "NO_KEY_FIELD", "STAID1_T", wellsList, "")
This may be a silly question, but did you set the env.workspace? Does the workspace actually have "wellresult" and "westbays" in it and are they tables in the FGDB?
Sorry if this throws you off in the wrong direction, but that's the first thing I'd double-check.
j