SQL Practice Workbook, SQL Exercises with Answer Key, Learn SQL Joins, Left Joins and Subqueries, 75 Exercises, Data Analyst Study, Free App
Price:$4.06
Original Price: $8.12
50% off
Limited time sale
4.6 out of 5
13 ratings
You can only make an offer when buying a single item
Highlights
FREE COMPANION APP INCLUDED: fill in Space Pets SQL: Joins on your phone, tablet or computer, then print your pages when you need them. Your private link and access code come in your download. It opens in your browser: no sign-up, no subscription, and your answers stay on your own device.
30-day money-back guarantee: if a file does not work for you, message us within 30 days for a fix or a full refund.
SQL practice workbook (Book 2): 75 SQL exercises on joins, left joins, missing rows and subqueries, with an answer key and SQLite files to practise on.
A printable SQL workbook for the step after the basics: joining tables. For adults who can already write SELECT, WHERE, ORDER BY and GROUP BY and get stuck the moment a question needs two tables.
Work on paper with a pen. Every question uses one small world printed on a two-page data card: 12 space pets, 5 snacks, 3 rockets and 22 deliveries in four tables, with gaps built in on purpose (a pet that never had a delivery, a snack never sent, deliveries with no rocket), because missing matches are where joins go wrong.
WHAT IS INSIDE
- 21 two-page lessons: a Learn page with the idea, the shape of the query, a worked example with the exact rows it returns, and a step-by-step table showing how many rows each part of the query leaves; then a Your turn page with 3 questions
- Part 2, match related rows: JOIN ... ON, table short names, same-named columns, filtering, why joined rows repeat
- Part 3, keep rows that have no match: LEFT JOIN, NULL, COALESCE, which table comes first, a test in ON or in WHERE
- Part 4, find what is missing: rows with no partner, one kind of match missing, counts that include zero
- Part 5, three tables and totals: two joins in one query, a name-matching example and why ids are safer in real databases, GROUP BY across a join
- Part 6, readable results: CASE, and counting only some rows with SUM(CASE ...)
- Part 7, queries inside queries: IN (SELECT ...), a query used as a table, WITH, and totals a join counts twice
- 75 exercises: Read it, Predict it, Write it, Fix it and Rewrite it, plus Review 1 and Review 2, each with a progress check, and a final mission
- A warm-up to check you are ready, a contents page, a "which join do I need?" cheat sheet with the real SQLite error messages
- Answer key: every answer query and the exact rows it returns
WHAT YOU GET
- Space_Pets_SQL_Book_2_Joins_A4.pdf - 71 pages, colour
- Space_Pets_SQL_Book_2_Joins_A4_BLACK_AND_WHITE.pdf - the same 71 pages for a black-and-white printer
- Space_Pets_SQL_Book_2_Joins_US_LETTER.pdf - 71 pages, colour
- Space_Pets_SQL_Book_2_Joins_US_LETTER_BLACK_AND_WHITE.pdf - 71 pages
- Space_Pets_SQL_Book_2_files.zip - space_pets.db (the four tables, ready to open), space_pets_setup.sql, all_answer_queries.sql and HOW_TO_RUN.txt
Every query in the book was run on these tables while the book was built, and every printed result is what it returned. The files were also checked with the sqlite3 command line.
Fixed printable PDFs: not fillable. Print at 100% ("Actual size"). Printed double-sided on the long edge and kept in order in a binder or stapled at the left, each lesson's Learn page faces its Your turn page.
WHAT YOU NEED
- A printer and a pen.
- Optional: SQLite to run your queries. The sqlite3 command line is free from sqlite.org; HOW_TO_RUN.txt gives the steps.
WHO IT IS FOR
Adults learning SQL for work or study who know the basics and want to get joins right: which rows a join keeps, where NULLs come from, and how to find what is missing.
The core JOIN, CASE, subquery and WITH ideas use widely supported SQL found in PostgreSQL, MySQL and SQL Server too. The included files, instructions and answer checks are for SQLite; details and error messages can differ between database systems.
WHAT THIS IS NOT
Not a first SQL book: it does not teach SELECT, WHERE or GROUP BY again (Space Pets SQL, book 1, does). No RIGHT or FULL JOIN exercises (a RIGHT JOIN gives the same matching result as a LEFT JOIN with the tables swapped, as lesson 8 explains), no window functions, no changing data.
Instant download. Nothing is posted.
HOW AI WAS USED
The space pet pictures were made with Google Gemini for book 1 and chosen by me. The lessons and questions were written with the help of AI models; every query and every printed result comes from running the query on the included database.
Instant Download
Your files will be available to download once payment is confirmed. Here's how.
Instant download items don’t accept returns, exchanges or cancellations. Please contact the seller about any problems with your order.
Etsy Purchase Protection
Shop confidently on Etsy knowing if something goes wrong with an order, we've got your back for all eligible purchases —
see program terms
Be the first to review this item
More from this shop
Visit shop-
Digital download
Adult Beginner Piano Course, 90 Day Lesson Book PDF + Free Practice App, Learn Piano, Easy Sheet Music with Letters, Free App
Sale Price $4.55
Original Price $9.09
-
Digital download
Kings and Prophets Timeline Printable, Kings of Israel and Judah Bible Study Chart, 43 Ruler Cards, Old Testament Chronology PDF, Free App
Sale Price $2.99
Original Price $5.98
-
Digital download
Python Workbook for Adult Beginners, Printable PDF: 21 Lessons, 92 Exercises, Answer Key, Answer Checker, Black and White Copy, Free App
Sale Price $5.16
Original Price $10.31
-
Digital download
SQL Workbook for Adult Beginners, Printable PDF: 21 Lessons, 73 Exercises, Group By, Full Answer Key, SQLite Practice File, Free App
Sale Price $3.43
Original Price $6.85
-
Digital download
SQL for Data Analysis: Practical Skills eBook | PDF Download | Data Science & Analytics Study Guide
Sale Price $4.19
Original Price $5.99
-
Digital download
SQL Practice Question Study Guide: 50 Questions Beginner to Intermediate Level
$9.99
-
Digital download
SQL 2025 Cheat Sheet: Beginner to Pro Guide with 15 Expert Tips | Database Management, Joins, Functions & More!
$8.00
-
Digital download
SQL Cheat Sheet - Database Query Reference PDF
Sale Price $4.68
Original Price $6.24
-
Digital download
Programming 101 COMPLETE GUIDE to Learn the Concepts of Coding Programming Computer Science
$19.99
-
Digital download
SQL Interview Q&A Flashcards: 300 Printable Cards (PDF Pack)
Sale Price $4.89
Original Price $6.99
-
Digital download
Ultimate SQL Queries Cheat Sheet: 100+ Versatile SQL Commands for Every Scenario - Instant Download PDF
$9.99
-
Digital download
COMPLETE C++ GUIDE to Learn the Concepts of Coding Programming Computer Science
$19.99
-
Digital download
JavaScript Coding Exercises: 50 Practice Problems with Solutions (PDF Download)
Sale Price $4.89
Original Price $6.99
-
Digital download
Data Analyst Bundle - SQL Python & Pandas Guide Set PDF
Sale Price $8.85
Original Price $11.80
-
Digital download
C++ Study Guide PDF | Step-by-Step Programming Lessons & Cheat Sheet
$4.56
-
Digital download
C++ Programming Language Notes PDF | Aesthetic Programming Study Guide | OOP Concepts for Computer Science Students | Learn C Plus Plus Code
Sale Price $9.04
Original Price $22.60
Shoppers with similar taste loved these
-
Python Cheat Sheet Coaster PCB – Coding Gift for Software Developers – Programmer Decor – Computer Science Student Gift – Code
Sale Price $26.11
Original Price $32.63
-
Tmux cheat sheet coaster made from a high-quality circuit board for software engineers, hackers and programmers
Sale Price $26.11
Original Price $32.63
-
Vim Cheat Sheet Coasters – Text Editor Shortcuts on PCB – Programmer Gift for Nerds – Computer Science Decor – Circuit Board Coasters Tech
Sale Price $26.11
Original Price $32.63
-
Linux Cheat Sheet Coaster PCB – Computer Science Gift for Programmers & Admins – Tech Desk Decor – Real Circuit Board Design
Sale Price $26.11
Original Price $32.63
-
CURL Cheat Sheet coaster made from a high-quality circuit board for developers, system administrators, web developers and everyone else.
Sale Price $26.11
Original Price $32.63
-
Git Cheat Sheet coasters made from a high quality circuit board for software engineers, hackers and programmers
Sale Price $26.11
Original Price $32.63
-
Bathory Mousepad Black Metal Venom Mayhem Darkthrone Immortal Emperor Dissection Merciful Fate King Diamond Gorgoroth Marduk Satyricon
$10.00
-
It's A Great Day To Collect Some Data Sticker, SLP, OT, PT, School Psych Sticker, Fun Rainbow Boho Sticker, School Psychology, Education
Sale Price $3.74
Original Price $4.99
-
Funny Sticker - "I Have a Spreadsheet for That" - Office Humor, Excel Sticker, Work From Home, Laptop Decal, Sarcastic Gift
$3.77
-
Data! Stickers | Data Science, Statistics, Engineer, Machine Learning, AI, Analytics, Analyst Gift, Excel, Python, Data Nerd, Stats, Datum
Sale Price $3.74
Original Price $4.99
-
Care to JOIN us? Data/SQL Sticker - Cute Tech Sticker
$2.75
-
Silently judging your spreadsheet sticker, work stickers, funny stickers, sarcastic stickers, office stickers, cool stickers, data sticker
Sale Price $3.15
Original Price $3.50