SQL does not work

I don’t why my SQL does not work. I put 2 files at the same folder and the errors occur. Thank you

1 Like

Hi namnguyn

Welcome to the Community!
As per the error message, there is an indentation error.
You should use a separate cell for the SELECT query.
The first cell should have
%%capture %load_ext sql %sql sqlite:///factbook.db

And the second cell should have
%%sql SELECT * FROM facts LIMIT 5;

Check whether it works.

1 Like

Thank you for helping me. It works now