Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If I store data from different sources in the same sqlite db file, is it possible to do joins?

I think that there are a lot of use cases if I can join data from different sources of my knowledge base



Yes, absolutely.

SQLite can even join data together from multiple different database files, though the Datasette interface doesn't support cross database joins just yet.


Can I use the same database to pull from multiple sources? And

Does datasette provide tools to make it easier to do joins on data from different sources?


Yes, you can load data from different sources into the same database - each of the Dogsheep tools lets you pick the database file that you are importing data into.

You can create bookmark SQL queries that perform joins in Datasette, or set up views. Here's an example: https://covid-19.datasettes.com/covid?sql=select%0D%0A++++++...


Cool, I'll have a look




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: