Is the new Raspberry Pi AI Kit better than Google Coral?
135561 Views
Build Your Own AI Assistant Part 1 - Creating the Assistant
121827 Views
Control Arduino with Python using Firmata / PyFirmata
88872 Views
How to Map with LiDAR - using a Raspberry Pi Zero 2W, RPLidar and Rviz
65602 Views
Creating a Supercomputer with a Raspberry Pi 5 Cluster and Docker Swarm!
60799 Views
Node-Red Automation, MQTT, NodeMCU & MicroPython
53953 Views
How to Keep your Raspberry Pi happy
How to Install Pi-Apps on a Raspberry Pi
Pikon II, The Ultimate DIY Raspberry Pi Camera!
Pico Plotter
LEGO Gets Lights & Sound with Tiny FX
Thinkman
DuckDB - Fast, free analytics
1h 36m
Obsidian
1h 0m
Getting Started with C on the Raspberry Pi Pico
0h 50m
Running K3s on Raspberry Pi
1h 28m
From Docker to Podman
1h 2m
MicroPython Robotics Projects with the Raspberry Pi Pico
0h 54m
Learn how to Program in Python, C, Rust, and more.
Learn Linux from the basics to advanced topics.
Learn how to use a Raspberry Pi Pico
Learn MicroPython the best language for MicroControllers
Learn Docker, the leading containerization platform. Docker is used to build, ship, and run applications in a consistent and reliable manner, making it a popular choice for DevOps and cloud-native development.
Learn how to build SMARS robots, starting with the 3D Printing the model, Designing SMARS and Programming SMARS
Learn how to build robots, starting with the basics, then move on to learning Python and MicroPython for microcontrollers, finally learn how to make things with Fusion 360.
Learn Python, the most popular programming language in the world. Python is used in many different areas, including Web Development, Data Science, Machine Learning, Robotics and more.
Learn how to create robots in 3D, using Fusion 360 and FreeCAD. The models can be printed out using a 3d printer and then assembled into a physical robot.
Learn how to create Databases in Python, with SQLite3 and Redis.
KevsRobots Learning Platform
35% Percent Complete
By Kevin McAleer, 4 Minutes
Let’s practice core SQL with a small public dataset. We’ll use the Seaborn tips dataset via HTTP.
tips
New to terms like GROUP BY, JOIN, or predicate pushdown? See the Beginner glossary.
Why this is useful: these five ideas cover 80% of everyday analytics.
In the CLI:
CREATE OR REPLACE TABLE tips AS SELECT * FROM read_csv_auto('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/tips.csv'); -- Peek at the data SELECT * FROM tips LIMIT 5;
What’s happening:
read_csv_auto
LIMIT 5
Purpose: pick the columns (features) and rows (cases) you care about.
-- Select specific columns SELECT day, time, total_bill, tip FROM tips LIMIT 10; -- Filter rows SELECT * FROM tips WHERE day = 'Sun' AND total_bill > 20 ORDER BY total_bill DESC LIMIT 10; -- Derived columns (create a new metric on the fly) SELECT total_bill, tip, ROUND(tip / total_bill * 100, 2) AS tip_pct FROM tips LIMIT 10;
You try it (3–5 min) Show top 5 total_bill rows for Saturdays only, with day, time, total_bill, and tip_pct Add a filter tip_pct >= 18 and see how results change
You try it (3–5 min)
total_bill
day
time
tip_pct
tip_pct >= 18
Notes:
NULLIF(total_bill,0)
Purpose: turn many rows into a concise summary for trends and comparisons.
-- Group and aggregate (dimension: day; measures: count and average) SELECT day, COUNT(*) AS orders, ROUND(AVG(total_bill), 2) AS avg_bill FROM tips GROUP BY day ORDER BY orders DESC; -- Multiple dimensions (day + time) SELECT day, time, ROUND(SUM(total_bill), 2) AS revenue FROM tips GROUP BY day, time ORDER BY revenue DESC;
You try it (3–5 min) Which day, time pair has the highest avg_bill? Add COUNT(*) AS orders and sort by orders instead
day, time
avg_bill
COUNT(*) AS orders
orders
COUNT(*)
AVG
SUM
Purpose: attach helpful context from another table using a shared key.
-- Tiny dimension table adds a weekend flag by day CREATE OR REPLACE TABLE day_names(day TEXT, weekend BOOLEAN); INSERT INTO day_names VALUES ('Thur', FALSE), ('Fri', FALSE), ('Sat', TRUE), ('Sun', TRUE); SELECT t.day, dn.weekend, COUNT(*) AS orders FROM tips t JOIN day_names dn ON dn.day = t.day GROUP BY t.day, dn.weekend ORDER BY orders DESC;
JOIN
LEFT JOIN
COALESCE(x, 0)
CAST(x AS INTEGER)
x::INTEGER
SELECT ROUND(tip / NULLIF(total_bill,0) * 100, 2) AS tip_pct FROM tips LIMIT 5;
party_size_band
< Previous Next >
You can use the arrows ← → on your keyboard to navigate between lessons.
← →