I have a feature layer called A, I created two layers b and c from A using "select by attribute" so b and c has polygons that are in A. Now I want to create another layer d that is the remaining polygons from A.
For instance, A has 100 polygons, I create b which is a subset of 20 polygons from A, I do the same for c which is a subset of 30 polygons from A. Now I want to create d which should contain the remaining 50 polygons in A. What tools can I use in Arcgis pro for this?
Use Select by Attributes on layer A again:
Probably the most foolproof method is to repeat the select by attribute queries and then switch the selection when all of 'B, C' are selected - this will then select the remainder which are not 'B, C' types.
https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-attribute.ht... - for the first query, use NEW_SELECTION. For subsequent queries use ADD_TO_SELECTION.
When all the features are selected you then switch/reverse/invert the selection
https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/work-with-selected-features.htm Switch the selection. To deselect all the selected features and select all the deselected ones, right-click the layer in the Contents pane, point to Selection, and click Switch Selection
Another option would be to take your original queries and alter the sql select statement to do the opposite (I've not checked the syntax below )
-- 'B' type query example
Animal = 'Dog'
-- 'C' type query example
Animal = 'Cat'
-- Select all remaining example
Animal <> 'Dog' AND Animal <> ' Cat'
--another way:
Animal NOT IN ('Cat', 'Dog')