SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers)

Photo of author
Written By Lynette D. Hernandez

Lorem ipsum dolor sit amet consectetur pulvinar ligula augue quis venenatis. 

google.com, pub-9993714101217709, DIRECT, f08c47fec0942fa0


Price: $34.95 - $25.91
(as of Aug 02, 2025 15:50:35 UTC – Details)


Bill Karwin has helped thousands of people write better SQL and build stronger relational databases. Now he’s sharing his collection of antipatterns—the most common errors he’s identified in those thousands of requests for help. Each chapter in this book helps you identify, explain, and correct a unique and dangerous antipattern. The four parts of the book group the antipatterns in terms of logical database design, physical database design, queries, and application development. The chances are good that your application’s database layer already contains problems such as Index Shotgun, Keyless Entry, Fear of the Unknown, and Spaghetti Query. This book will help you and your team find them. Even better, it will also show you how to fix them, and how to avoid these and other problems in the future. SQL Antipatterns gives you a rare glimpse into an SQL expert’s playbook. Now you can stamp out these common database errors once and for all. Whatever platform or programming language you use, whether you’re a junior programmer or a Ph.D., SQL Antipatterns will show you how to design and build databases, how to write better database queries, and how to integrate SQL programming with your application like an expert. You’ll also learn the best and most current technology for full-text search, how to design code that is resistant to SQL injection attacks, and other techniques for success. Most developers aren’t SQL experts, and most of the SQL that gets used is inefficient, hard to maintain, and sometimes just plain wrong. This book shows you all the common mistakes, and then leads you through the best fixes. What’s more, it shows you what’s behind these fixes, so you’ll learn a lot about relational databases along the way.

From the brand

The Pragmatic ProgrammersThe Pragmatic Programmers

Explore our collections

The Pragmatic Programmers publishes hands-on, practical books on classic and cutting-edge software development and engineering management topics. We help professionals solve real-world problems, hone their skills, and advance their careers.

Publisher ‏ : ‎ Pragmatic Programmers, LLC, The
Publication date ‏ : ‎ July 10, 2017
Edition ‏ : ‎ 1st
Language ‏ : ‎ English
Print length ‏ : ‎ 334 pages
ISBN-10 ‏ : ‎ 1934356557
ISBN-13 ‏ : ‎ 978-1934356555
Item Weight ‏ : ‎ 1.55 pounds
Dimensions ‏ : ‎ 8.5 x 0.76 x 11 inches
Best Sellers Rank: #94,549 in Books (See Top 100 in Books) #5 in MySQL Guides #12 in SQL #14 in Data Modeling & Design (Books)
Customer Reviews: 4.5 4.5 out of 5 stars 195 ratings var dpAcrHasRegisteredArcLinkClickAction; P.when(‘A’, ‘ready’).execute(function(A) { if (dpAcrHasRegisteredArcLinkClickAction !== true) { dpAcrHasRegisteredArcLinkClickAction = true; A.declarative( ‘acrLink-click-metrics’, ‘click’, { “allowLinkDefault”: true }, function (event) { if (window.ue) { ue.count(“acrLinkClickCount”, (ue.count(“acrLinkClickCount”) || 0) + 1); } } ); } }); P.when(‘A’, ‘cf’).execute(function(A) { A.declarative(‘acrStarsLink-click-metrics’, ‘click’, { “allowLinkDefault” : true }, function(event){ if(window.ue) { ue.count(“acrStarsLinkWithPopoverClickCount”, (ue.count(“acrStarsLinkWithPopoverClickCount”) || 0) + 1); } }); });

Customers say

Customers find the book’s advice valuable and appreciate that it’s suitable for both beginners and seasoned developers. The content is easy to read and understand, with one customer noting the plain and direct language. They also value the book’s coverage of database design.

Leave a Comment