0

I have a table and a feature class in a file geodatabase. I want to export records from the table that match what is in the feature class using ModelBuilder. For example the table contains 100 records and there are only 30 in the feature class. I want to export only the 30 records that match what is in the table. This is the SQL that I am trying to use:

GIS_ID IN (SELECT GIS_ID FROM FeatureClass)
PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jul 9, 2018 at 18:30
1
  • You could join by attributes with the keep common option, make a feature layer, remove join then CopyFeatures to create an output. Commented Jul 10, 2018 at 0:00

1 Answer 1

1

If your query is working then you need only run the Table Select tool from the Analysis toolbox. This takes a where clause and exports the rows to a new table.

As you have the table and featureclass in the same file geodatabase then your sub-query should work. The example below worked, my expression is the same as yours.

Model

answered Jul 16, 2018 at 15:25

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.