fc = r"C:\temp\test.gdb\my_fc" fieldValueListA = [r[0] for r in arcpy.da.SearchCursor(fc, ["FIELD_A"])] tblB = r"C:\temp\test.gdb\tbl_b" fieldValueListB = [r[0] for r in arcpy.da.SearchCursor(tblB, ["FIELD_B"], "FIELD_A in (" + str(fieldValueListA)[1:-1] + ")")] #....and so on
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.