I am using the sql package in a Jupyter notebook and I understand how to use variables in my query:
client = "Disney"
queryid = %sql SELECT * FROM mytable WHERE name = :client
What I don't understand is how to pass a list to my query, like:
clients = ["Disney", "Netflix", "Sky"]
queryid = %sql SELECT * FROM mytable WHERE name in (:clients)
This raises an error which states that my SQL is wrong. What is the way to handle lists in this setting?