I am trying to do the following query:
select count(*) from video where territories like %ZW%
Here is what I currently have, but it's raising an error:
for territory_code in ALL_TERRITORIES:
sql = "select count(*) from video where territories like %{}%".format(territory_code)
cursor.execute(sql)
What am I doing wrong here, and how would I properly escale the %% ?