I am trying to run a sql query in my python notebook,
code in cell looks like
sql = "select date, count(distinct id)
from table
group by 1;"
When I run I get an error of
SyntaxError: unterminated string literal (detected at line 1)
I think I found the error, when I delete the space between the lines it goes away and runs such as:
"select date, count(distinct id) from table group by 1;"
The problem is thats my sample query, but I have large queries where it gets difficult to backspace them into one line, is there a way where I can get this to run without having on one line? Thanks