Thanks, Curtis.
I do indeed have all of those gp functions defined - a namespace boo-boo led me to deceive myself. I'll avoid them per your advice: I read they were deprecated but forgot.
I was able to get somewhat farther with arcpy.MakeQueryTable_management. I received a result object from which I could obtain a tableview object which claimed it lived in the geodatabase according to its datasource property. But there I was stuck. Nothing ever changed in the GUI, even after refresh. And, in trying to turn the tableview object into something "tangible", I got errors when trying to use arcpy.CopyFeatures_management saying that the value was not a Feature Layer.
However, I was doing all this by importing arcpy into PythonWin. I just ran arcpy.MakeQueryTable_management in the ArcMap python window and it made an entry in the TOC that I can right click and open. It even persists on a close with no save, though there still is no evidence of it in the Catalog window.
What I am trying to work towards is the cleanest way to do joins on a feature class and a data table. Ideally, I was seeking some kind of intermittent data structure that I could produce with python and embedded sql, so I could say, find all buildings in a feature class taller than 10 stories (assuming the height is stored in the data table, but not the feature table.) I have a feeling I might be going about it the wrong way in general.
I'm also obviously curious at this point about perceived limitations in using arcpy through PythonWin.
I went through the whole process described above in IDLE and got identical results to PythonWin. I have attempted to post that trail below this point.
>>> import arcpy
>>> arcpy.env.workspace =r"Y:\lsp\tom\ESRIresearch\Monticello\phase2\smallSampleDB\smallSample.gdb"
>>> outtable='q84'
>>> test=arcpy.MakeQueryTable_management (['XYfeatureTable'], outtable,"ADD_VIRTUAL_KEY_FIELD","",[["XYfeatureTable.EHANDLE"]],"")
>>> test
<Result 'q84'>
>>> o=test.getOutput(0)
>>> o
<TableView object at 0x17d58c10[0x2a995d8]>
>>> o
<TableView object at 0x17d58c10[0x2a995d8]>
>>> o.dataSource
u'Y:\\lsp\\tom\\ESRIresearch\\Monticello\\phase2\\smallSampleDB\\smallSample.gdb\\q84'
>>> o.datasetName
u'q84'
>>> sc=arcpy.da.SearchCursor(o.dataSource,'XYfeatureTable.EHANDLE')
Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
sc=arcpy.da.SearchCursor(o.dataSource,'XYfeatureTable.EHANDLE')
RuntimeError: cannot open 'Y:\lsp\tom\ESRIresearch\Monticello\phase2\smallSampleDB\smallSample.gdb\q84'
>>> arcpy.CopyFeatures_management(o.dataSource,"Y:/lsp/tom/ESRIresearch/Monticello/phase2/smallSampleDB/smallSample.gdb/test")
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
arcpy.CopyFeatures_management(o.dataSource,"Y:/lsp/tom/ESRIresearch/Monticello/phase2/smallSampleDB/smallSample.gdb/test")
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 2429, in CopyFeatures
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Features: Dataset Y:\lsp\tom\ESRIresearch\Monticello\phase2\smallSampleDB\smallSample.gdb\q84 does not exist or is not supported
Failed to execute (CopyFeatures).
>>> arcpy.CopyFeatures_management(o.datasetName,"Y:/lsp/tom/ESRIresearch/Monticello/phase2/smallSampleDB/smallSample.gdb/test")
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
arcpy.CopyFeatures_management(o.datasetName,"Y:/lsp/tom/ESRIresearch/Monticello/phase2/smallSampleDB/smallSample.gdb/test")
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 2429, in CopyFeatures
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000840: The value is not a Feature Layer.
ERROR 000840: The value is not a Raster Catalog Layer.
Failed to execute (CopyFeatures).