Public
Edited
Nov 2, 2023
3 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
db = DuckDBClient.of({
actor:actorFile,
film:filmFile,
filmActor:filmActorFile
})
Insert cell
db
SELECT DISTINCT actor_id
FROM film INNER JOIN filmActor
ON film.film_id = filmActor.film_id
WHERE rating = 'PG-13'
Insert cell
db
SELECT DISTINCT actor_id
FROM filmActor
WHERE EXISTS (
SELECT *
FROM film
WHERE film_id = filmActor.film_id AND rating = 'PG-13'
)
Insert cell
db
SELECT DISTINCT film_id
FROM actor INNER JOIN filmActor
ON actor.actor_id = filmActor.actor_id
WHERE first_name = 'JOHNNY'
Insert cell
db
SELECT DISTINCT film_id
FROM filmActor
WHERE EXISTS (
SELECT *
FROM actor
WHERE actor_id = filmActor.actor_id AND first_name = 'JOHNNY'
)
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