Yes I am using SQL and hitting SDE...just need to build the sql_clause then I guess...getting to syntax to work right for something like this is where I am having issues: safteysign = Yes OR regulations = No
The below works but there is no WHERE clause or sql Clause
import arcpy
arcpy.env.workspace = "C:\\Users\\xxk\\AppData\\Roaming\ESRI\\Desktop10.4\\ArcCatalog\\xx@xx.sde"
fc = "Inspection_2"
fields = ['safteysign', 'regulations', 'region_1']
## Use ORDER BY sql clause to sort field values
for row in arcpy.da.SearchCursor(
fc, fields, sql_clause=(None, 'ORDER BY regulations')):
print('{0}, {1}, {2}'.format(row[0], row[1], row[2]))