AnsweredAssumed Answered

Selecting multiple attributes from the same column using where_clause

Question asked by clarosa on Apr 20, 2017
Latest reply on Apr 22, 2017 by xander_bakker



   I am really green in this, but I am having trouble using where_clause to select two types two different types of attributes within the same column using the Select(analysis) tool with arcpy. 


The way I  do it regularly using Select by Attributes windows is the following 


DrainClass = 'Somewhat excessively drained' OR DrainClass = 'Well drained'


I have tried using double quotations on the outside, but I keep getting an ExecuteError


ExecuteError: ERROR 000358: Invalid expression DrainClass = 'Somewhat excessively drained' OR DrainClass = 'Well drained'


Does anyone know how to set the correct expression in arcpy?


Thank you