Public
Edited
Aug 8, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
film_actor = FileAttachment("film_actor.csv").csv({typed:true})
Insert cell
film = FileAttachment("film.csv").csv({typed:true})
Insert cell
Insert cell
Insert cell
Insert cell
db
SELECT first_name,last_name
FROM customer
WHERE last_name = 'SMITH'

Insert cell
db
SELECT *
FROM category
Insert cell
db
SELECT language_id,name
FROM language
Insert cell
db
SELECT DISTINCT actor_id
FROM film_actor
ORDER BY actor_id
Insert cell
db
SELECT title
FROM film
WHERE rating = 'G' AND rental_duration >= 7;

Insert cell
db
SELECT title
FROM film
WHERE rating = 'G' OR rental_duration >= 7;
Insert cell
db
SELECT title
FROM film
WHERE (rating = 'G' OR rental_duration >= 7) OR (rating = 'PG' OR rental_duration < 4);
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more