Published
Edited
Jun 16, 2022
15 forks
11 stars
Insert cell
Insert cell
Insert cell
// we've loaded the sqlite file and made it accessible as a database in this notebook
db = FileAttachment("sql-murder-mystery.db").sqlite()
Insert cell
// you can see the tables available for querying
db.describe()
Insert cell
Insert cell
Insert cell
db
SELECT date,type,city,description
FROM crime_scene_report
Insert cell
Insert cell
db
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
db
INSERT INTO solution VALUES (1, 'SUSPECT NAME HERE');
SELECT value FROM solution
Insert cell
Insert cell
Insert cell
// uncomment the line below to see a schema diagram of the database!
// diagram(db)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more