I am trying to pull data from a certain database, the database is huge so I would like to query it before getting the data into python. I want to query on a specific column [Type] that I know is type varchar(50). As a test tried to query on an integer column successfully:
df = pd.read_sql_query('SELECT * FROM Prices where Price = 1', conn)
However when I try and do the same with the varchar column it tells me the column name is invalid.
df = pd.read_sql_query('SELECT * FROM Prices where Type = Daily', conn)
Thanks in advance!