Buy New
EUR17.77EUR17.77
EUR 7.76 delivery Monday, May 11
Ships from: Amazon.com Sold by: Amazon.com
Used - Like New
EUR15.37EUR15.37
EUR 7.76 delivery Wednesday, May 13
Ships from: Amazon Sold by: Ricehoppers13
Return this item for free
Free returns are available for the shipping address you chose. You can return the item for any reason in new and unused condition: no return shipping charges.
Learn more about free returns.- Go to your orders and start the return
- Select your preferred free shipping option
- Drop off and leave!
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
SQL Practice Problems: 57 beginning, intermediate, and advanced challenges for you to solve using a “learn-by-doing” approach
Purchase options and add-ons
»»» NOTE: Used copies of this book may be missing critical digital resources. «««
»»» Updated 2020 edition «««
The ability to write SQL is one of the most in-demand job skills. Are you prepared?It's easy to find basic SQL syntax information online. What's hard to find is challenging, well-designed, real-world problems—the type of problems that come up when you're dealing with data. Learning how to solve these problems will give you the skill and confidence to step up in your career.
With SQL Practice Problems, you can get that level of experience by solving sets of targeted problems. These aren't just problems designed as syntax examples. These are the most common problems you encounter when you deal with data.
You will get real world practice, with real world data. I'll teach you how to “think” in SQL, how to analyze data problems, figure out the fundamentals, and work towards a solution that you can be proud of.
Can I run SQL Practice Problems on a Mac? No, it requires a computer with Microsoft Windows. I also offer a Professional package at SQLPracticeProblems.com which is suitable for both Windows and Mac.
How important is the real-life, hands-on problem solving that you can find in SQL Practice Problems?
You can watch videos online that will walk you through various aspects of databases, and SQL. And you can read up on SQL syntax and keywords, and review sample code.
But...to really absorb and be able to apply your learning, you need to solve real-world problems. Being presented with a SQL problem, and working through that problem (with hints, if necessary) will help you understand and remember like nothing else.
What do you get when you buy SQL Practice Problems?
- Setup instructions for Microsoft SQL Server Express Edition and SQL Server Management Studio (Microsoft Windows required). Both are free downloads.
- A customized practice database, with a video walk-through on setting it up.
- Practice problems - 57 problems that you work through, step-by-step. There are targeted hints if you need them, which help guide you through the question.
- Answers and a short, targeted discussion section on each question, with alternative answers and tips on usage and good programming practice.
- Complex descriptions of syntax. There's just what you need, and no more.
- The differences between every single SQL variant (MS SQL Server, Oracle, MySQL, etc). The practice problems are set up with Microsoft SQL Server, and the differences are minor and easy to find online.
- Details on Insert, Update and Delete statements. The hardest thing to learn in SQL is how to write Select statements that return complex data. Other components of SQL are relatively easy.
"Probably the most useful technical book I've used! Challenging problems with appropriate hints - use as needed. She should be writing other books."
- A. J.
"I have numerous books on SQL, and have taken courses from people with lots of experience with data and SQL. Alas, knowing the material is not the same as being able to present it clearly and in digestible bites. Obviously, you have that knack. I have learned things from your book that nobody ever showed me before. I sincerely hope that you will write more books."
- H. V
"I am starting from scratch, all self-taught so far in SQL, and was picking up the syntax and wording, but I could not find anything to give me real world application and scenarios. This book changed that! Great book, great problems, really makes you think."
-M.G.
- ISBN-101520807635
- ISBN-13978-1520807638
- PublisherIndependently published
- Publication dateMarch 13, 2017
- LanguageEnglish
- Dimensions7.5 x 0.32 x 9.25 inches
- Print length125 pages
Frequently bought together

Customers who viewed this item also viewed
Customers also bought or read
- Learning SQL: Generate, Manipulate, and Retrieve Data
PaperbackEUR31.20EUR31.20EUR 8.60 delivery Mon, May 11 - SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL (Coding & Programming - QuickStart Guides)#1 Best SellerSQL
PaperbackEUR18.18EUR18.18EUR 8.40 delivery Tue, May 12 - SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL
PaperbackEUR38.72EUR38.72EUR 9.83 delivery Mon, May 11 - Practical SQL, 2nd Edition: A Beginner's Guide to Storytelling with Data#1 Best SellerComputer Programming Structured Design
PaperbackEUR18.37EUR18.37EUR 8.60 delivery Mon, May 11 - SQL Cookbook: Query Solutions and Techniques for All SQL Users
PaperbackEUR35.90EUR35.90EUR 9.10 delivery Mon, May 11 - Real-World SQL for Analysts: 90 Practice Problems to Get You Job-Ready
PaperbackEUR15.81EUR15.81EUR 7.70 delivery Tue, May 12 - SQL for Data Analysis: Advanced Techniques for Transforming Data into Insights
PaperbackEUR31.20EUR31.20EUR 8.60 delivery Mon, May 11 - The Definitive Guide to DAX: Business Intelligence for Microsoft Power BI, SQL Server Analysis Services, and Excel Second Edition (Business Skills)
PaperbackEUR43.43EUR43.43EUR 9.17 delivery Mon, May 11 - Automate the Boring Stuff with Python, 3rd Edition
PaperbackEUR28.74EUR28.74EUR 9.17 delivery Mon, May 11 - Practical Statistics for Data Scientists: 50+ Essential Concepts Using R and Python
PaperbackEUR34.41EUR34.41EUR 8.60 delivery Mon, May 11 - Head First SQL: Your Brain on SQL -- A Learner's Guide
PaperbackEUR16.05EUR16.05EUR 9.17 delivery May 11 - 18 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
PaperbackEUR37.61EUR37.61EUR 9.10 delivery Mon, May 11 - Storytelling with Data: A Data Visualization Guide for Business Professionals#1 Best SellerInformation Management
PaperbackEUR19.93EUR19.93EUR 8.44 delivery Mon, May 11 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerPython Programming
PaperbackEUR23.54EUR23.54EUR 8.82 delivery Mon, May 11 - Python Practice Exercises: A complete Collection of Exercises With Different Levels of Complexity From Beginner to Advanced.
PaperbackEUR21.37EUR21.37EUR 8.60 delivery Tue, May 12 - Simple SQL: Beginner’s Guide To Master SQL And Boost Career (Zero To Hero)
PaperbackEUR22.22EUR22.22EUR 9.10 delivery Tue, May 12 - Data Visualization with Microsoft Power BI: How to Design Savvy Dashboards
PaperbackEUR35.34EUR35.34EUR 8.82 delivery Mon, May 11 - Fundamentals of Data Engineering: Plan and Build Robust Data Systems
PaperbackEUR35.05EUR35.05EUR 8.82 delivery Tue, May 12 - SQL All-in-One For Dummies (For Dummies (Computer/Tech))
PaperbackEUR19.58EUR19.58EUR 9.17 delivery Mon, May 11 - The Data Warehouse Toolkit: The Definitive Guide to Dimensional Modeling#1 Best SellerDatabase Storage & Design
PaperbackEUR28.51EUR28.51EUR 8.82 delivery Mon, May 11 - Python and SQL Bible: From Beginner to World Expert: Unleash the full potential of data analysis and manipulation by mastering Python and SQL
PaperbackEUR34.12EUR34.12EUR 9.10 delivery Mon, May 11 - Ace the Data Science Interview: 201 Real Interview Questions Asked By FAANG, Tech Startups, & Wall Street
PaperbackEUR36.26EUR36.26EUR 8.60 delivery Mon, May 11 - The Big Book of Dashboards: Visualizing Your Data Using Real-World Business Scenarios
PaperbackEUR24.54EUR24.54EUR 9.17 delivery May 11 - 13 - Database Design for Mere Mortals: 25th Anniversary Edition
PaperbackEUR31.15EUR31.15EUR 9.17 delivery Mon, May 11 - Mastering SQL Joins: A Quick Handbook On Mastering SQL Joins With Practical Exercises
PaperbackEUR13.67EUR13.67EUR 7.76 delivery Tue, May 12 - PYTHON PROGRAMMING AND SQL: Accelerate Your Learning Journey with Real-World Projects, Advanced Techniques, and the Knowledge to Stand Out in the Tech Industry
PaperbackEUR12.82EUR12.82EUR 7.76 delivery Tue, May 12 - Data Science from Scratch: First Principles with Python
PaperbackEUR38.18EUR38.18EUR 8.82 delivery Mon, May 11
Editorial Reviews
Review
"A fantastic book for those who want to get real hands-on experience with SQL. As the book suggests, you can only learn so much by viewing tutorials - actually grasping the concepts can only be done by doing problems. I wish there were more books like this! Sylvia, please make others like this!"- Aagosh (verified purchase)
"Got this book for more practical examples to apply SQL in the real world, and this book is amazing! It guides you through very easy examples and gradually challenges you to auto study to solve more challenging problems. I will highly recommend this book to people that are starting in SQL or looking to apply SQL in more realistic day-to-day business problems. Response from the author on questions or comments is really fast too!"- P.N. (verified purchase)
"This was an incredible book. It taught me some new things about CTE's towards the end of the book which are very helpful. It also gave me a fresh set of practice problems to work on to sharpen my SQL Skills. I'd totally recommend this book."- Mark (verified purchase)
"This is one of the top few computer books that I have ever read (and I've read hundreds)! It has been a pleasure to work with and work through (actually, I've only done the first 31 problems so far). The problems are carefully thought out, and clearly expressed. I couldn't be more pleased with this book!"- J.C. (verified purchase)
From the Author
I've been working with data for more than 20 years, as a database programmer/architect and data scientist, working at organizations like Expedia, Microsoft, T-Mobile, and the Gates Foundation.
In 2015, I was teaching a SQL Server Certificate course at the University of Washington Continuing Education. It was a 10 week course, and my students paid more than $1000 for it. My students learned the basics of SQL, most of the keywords, and worked through practice problems every week of the course.
But because of the emphasis on getting a broad overview of all features of SQL, we didn't spend nearly enough time on the type of SQL that's used 95% of the time--intermediate and advanced Select statements. After the course was over, many of my students emailed me to ask where they could get more real-world problems. That's when I was inspired to start work on SQL Practice Problems.
Thank you so much to everyone who's contacted me with feedback. I've heard from so many people that working their way through SQL Practice Problems was what really made the difference in understanding SQL. Hearing from you is what keeps me motivated to continue updating and improving the content.
Product details
- Publisher : Independently published
- Publication date : March 13, 2017
- Language : English
- Print length : 125 pages
- ISBN-10 : 1520807635
- ISBN-13 : 978-1520807638
- Item Weight : 9.6 ounces
- Dimensions : 7.5 x 0.32 x 9.25 inches
- Best Sellers Rank: #545,917 in Books (See Top 100 in Books)
- #65 in SQL
- #547 in Computer Programming Languages
- #1,217 in Programming Languages (Books)
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Generated from the text of customer reviewsSelect to learn more
Reviews with images
Not for beginners
Top reviews from the United States
- 5 out of 5 stars
Great asset for those learning or re-familiarizing with SQL
Reviewed in the United States on August 12, 2025Great Book! I wish I had come across it when I was just starting with SQL, as it is, even though I had little trouble with the "beginner" section it still highlighted alternate approaches to things I do differently and I am learning on the "intermediate" section and looking forward to "advanced". I obtained the Pro package from the book website to get additional problems (and got a discount from the author by providing the amazon purchase details). I highly recommend to anyone dealing with SQL, especially those that have not had day-to-day immersion in it.
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
An Outstanding book to learn SQL fast
Reviewed in the United States on October 15, 2025This is an outstanding book for anyone that wants to get up to speed with real world MS-SQL development - and in a hurry. I am a .Net veteran that has used MS SQL server with C# in almost every project I have done but for various reasons including the strength of my C# skills never really took the time to properly utilize SQL and process data using SQL.
The book provides a sample database and presents real-world problems and solutions starting from "Beginning" to "Intermediate" and finally to "Advanced" in terms of difficulty. It showcases ever more difficult SQL problems requiring ever increasing SQL knowledge to solve. Correct result sets are included with the problem definitions. You are encouraged to solve the problem yourself but if stuck the answer is available along with accurate and succint explanation. By the end of the book, you are armed with the knowldge necessary to tackle any real-world problem or respond correctly to any SQL related "Technical interview" challenge.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
Challenging SQL Query Problems to help you hone your skills
Reviewed in the United States on February 2, 2017I've been a DBA for over 15 years and have written a lot of T-SQL code, but this book was a great refresher and introduced some new practices, query ideas I had never thought about before. This is a great book for sharpening your T-SQL querying skills and helping you to gauge your skills -- useful for interview prep and other. I think this book would be useful for both beginners and advanced users.
11 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Great hands on practice
Reviewed in the United States on March 20, 2026I love this book! Really great practice.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Useful and pragmatic
Reviewed in the United States on July 30, 2025I really enjoyed this. I did almost all the problems in a couple days and it was great to just practice things that don’t come up in my job. It gets you going right away and having the live database with it made it feel very practical.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Good source of practice problems
Reviewed in the United States on April 25, 2024Worked with SQL years ago, but have gotten beyond rusty. Looking at possible job interview that requires some SQL, using this book along with the fifth edition of Sam's Teach Yourself SQL in 10 Minutes to refresh my memories.
Both books would also be good for beginners. I pretty much taught myself SQL using the printed 2nd Edition of Teach Yourself SQL in 10 minutes and the internet. I bought the kindle versions of both books because its much easier to study and solve practice problems when you can have the book up on one screen and the interface to a RDBMS to work the problems on another.
5 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Highly recommend this book
Reviewed in the United States on April 12, 2019I just finished all 57 problems in this book in my spare time over the past week. I cannot say enough about how much I enjoyed learning from this book. If you are like me and find that you grasp concepts easier by using the hands-on, learn-by-doing techniques, then this book is for you. I love how the author gives real world scenario problems, and just enough information to figure out the solution, or at least enough information to do some research to solve the problem. I find this approach extremely effective. I already purchased the next book, More SQL Practice Problems, and feel guilty for using the 50% discount code provided at the end of this book because even at full price the book is well worth the money.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
This is okay. For a few dollars more you can get the very thorough and comprehensive SQL Cookbook by Anthony Molinaro.
Reviewed in the United States on May 9, 2018This is okay. For a few dollars more you can get the very thorough and comprehensive SQL Cookbook by Anthony Molinaro, which also covers advanced Select statements, but then a whole lot more.
The explanations there are considerably more detailed as well, and cover PostgreSQL, MySQL, and MSSQL.
The author is an Österreicher. For her betrayal, I deduct one star.
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
Anonymous1 out of 5 starsToo basic, so useless in the real world
Reviewed in Australia on December 26, 2022I've never used SQL before, other than Proc SQL in SAS while at graduate school. When buying this book, I thought it would teach me sophisticated skills as those that help me solve SQL problems in some SQL challenge websites. Sadly, this book is too basic and the title is extremely confusing. The title should have been "SQL Practice for Kids and Toddlers" rather than adults wishing to learn SQL for real-world jobs. There is no question in the book that is similar to what I've been doing using SAS (handling a dataset of 500 million rows and performing complex queries, merges, filterings, etc.).
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Jorge Escobar5 out of 5 starsGreat challenges ahead in this book.
Reviewed in Mexico on February 11, 2019I really enjoyed your book. I spended a wonderful weekend solving all the practice problems on my computer. I have to say that even though the firsts problems are easy to solve, this sense of overconfidence fades away and rather quickly, right at the JOIN practice problems before the intermediate problems section.
I found myself before problems where I did not have an immediate answer. I got to actually think really hard to solve the problems, specially the ones at the advanced problems section.
I learned about the existence of CTE’s (common table expressions) and they are really useful. As well as the use of several date time functions that I rarely use, but those are really useful too.
I recommend this book as a training exercise to all those database administrators that seek a challenge to their skills.
I actually recorded the entire time I was solving the problems and you may find the YouTube playlist on the link below.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Juan Sena5 out of 5 starsThis book is awesome!
Reviewed in Canada on August 19, 2021Hello Ms Sylvia Moestl Vasilik,
First of all, I want to tell you that your book is awesome!
I was able to solve all the exercises from basic package to professional package.
I am confident now that I have reached a significant level of proficiency in SQL coding as these exercises are far more complicated that the ones I encountered from my previous experience.
I am glad that I bought this book.
With regards to exercise #39 of professional package, I could not understand why MIN() function was used in the problem (out of curiosity, I tried to replace MIN() with MAX() and it gave me the same answer).
Anyway, without peeking at the answer, my solution below resulted to same result:
;WITH Main AS
(
SELECT
Customer.CustomerID,
CustomerName = FirstName + ' ' + LastName,
LineTotal = SUM(LineTotal),
ProductSubCategoryName,
RowNumber =
ROW_NUMBER()
OVER
(
PARTITION BY
Customer.CustomerID
ORDER BY
SUM(LineTotal) DESC
)
FROM
Customer
LEFT JOIN
SalesOrderheader
ON
Customer.CustomerID = SalesOrderheader.CustomerID
JOIN
SalesOrderDetail
ON
SalesOrderHeader.SalesOrderID =SalesOrderDetail.SalesOrderID
JOIN
Product
ON
SalesOrderDetail.ProductID = Product.ProductID
JOIN
ProductSubcategory
ON
Product.ProductSubcategoryID = ProductSubcategory.ProductSubcategoryID
WHERE
Customer.CustomerID
IN
(
13763,
13836,
20331,
21113,
26313
)
GROUP BY
Customer.CustomerID,
FirstName + ' ' + LastName,
ProductSubCategoryName
)
SELECT
ProductSubCat1.CustomerID,
ProductSubCat1.CustomerName,
TopProductSubCat1 = ProductSubCat1.ProductSubCategoryName,
TopProductSubCat2 = ProductSubCat2.ProductSubCategoryName,
TopProductSubCat3 = ProductSubCat3.ProductSubCategoryName
FROM
(
SELECT
*
FROM
Main
WHERE
RowNumber = 1
) ProductSubCat1
LEFT JOIN
(
SELECT
*
FROM
Main
WHERE
RowNumber = 2
) ProductSubCat2
ON
ProductSubCat1.CustomerID = ProductSubCat2.CustomerID
LEFT JOIN
(
SELECT
*
FROM
Main
WHERE
RowNumber = 3
) ProductSubCat3
ON
ProductSubCat1.CustomerID = ProductSubCat3.CustomerID
My code does not use MIN().
Also there is no need for me to use GROUP BY and ORDER BY at end of the code.
I want to know if my solution is correct or has merits. Please let me know.
Thank you and again more power!
Juan Sena
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Jayasankar Echarath5 out of 5 starsGood Practice Resource
Reviewed in India on June 17, 2025The book provides practical questions
So by solvythe problems you will gain very good understanding of the concepts
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Antonio Valanzano1 out of 5 starsLibro non utile
Reviewed in Italy on October 31, 2023Il libro non contiene molti problemi realmente "advanced".
Molti problemi sono varianti dello stesso problema quindi in realtà i problemi non sono 57.
Inoltre nella sezione "Discussion" non ci sono molti elementi utili ma in molti casi inviti ad effettuare ricerche online sui vari argomenti.
In definitiva sconsiglio l'acquisto del libro.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
















