import arcpy
arcpy.env.workspace = r"C:\PPCAnalysis\PPCAnalyis\PPCAnalyis.gdb"
select_stations = arcpy.GetParameterAsText(0).split(";")
firestations = r"C:\PPCAnalysis\PPCAnalyis\ISRB_DATA.sde\DBO.FireStations"
qry = "{0} IN ({1})".format(arcpy.AddFieldDelimiters(datasource= firestations, field = 'STATIONID'), ', '.join(select_stations))
selected_stations = arcpy.management.SelectLayerByAttribute(in_layer_or_view= firestations, where_clause=qry)
arcpy.SelectLayerByAttribute_management(in_layer_or_view=firestations, where_clause= qry)I am trying to develop a custom tool where the user can enter "STATIONID" for a fire station, and it will select it.
The fire station feature class is being stored in an Enterprise Geodatabase, and when I enter the parameter (see screenshot), it says it was successful. However, when I open the attribute table, nothing is actually being selected. Also, neither is the point on the map.

For future development reasons I do want the selection to be made directly from the enterprise geodatabase. Thanks so much for the help😁.