213 words
1 minute
PondPilot with DuckDB Local File Demo
Loading Local DuckDB Files
This demo loads a preloaded .duckdb file from the server. The file contains main.orders and main.customers tables.
1. Count Orders
2. Preview Orders
3. Join Orders with Customers
4. Create New Table will give ERROR
Create a products table that we’ll use for analysis:
5. Join New Table with Existing Data
Join the newly created products table with orders (matching by amount to product price):
SELECT o.order_id, o.customer, c.tier, p.product_name, o.amount as priceFROM main.orders oJOIN main.customers c USING(customer)JOIN products p ON o.amount = p.priceORDER BY o.order_id;# Without overriding, this would be a terminal framefunction Watch-Tail { Get-Content -Tail 20 -Wait $args }New-Alias tail Watch-TailNote: All widgets on this page share the same DuckDB instance. Tables created in one widget (like products) are accessible in all other widgets!
PondPilot with DuckDB Local File Demo
https://aneeqasif.github.io/posts/pondpilot-duckdb-demo/