I'm trying to produce a query on the number of times the product Americano comes up in my database table. My database looks like this:
id product size milkOptions
1 Americano Small WholeMilk
2 Espresso Large SemiSkimmed
This is the query:
conn=sqlite3.connect("system.db")
cur=conn.cursor()
americano = cur.execute("""SELECT COUNT(id) FROM customerOrders WHERE product = Americano""")
The error is:
americano = cur.execute("""SELECT COUNT(id) FROM customerOrders WHERE product = Americano""")
sqlite3.OperationalError: no such column: Americano