Customer Reviews


20 Reviews
5 star:
 (14)
4 star:
 (3)
3 star:
 (2)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
Share your thoughts with other customers
Create your own review
 
 
Only search this product's reviews

The most helpful favorable review
The most helpful critical review


19 of 19 people found the following review helpful:
5.0 out of 5 stars A Very Useful and Entertaining Book
I have a vast collection of SQL books. If it was published in the last 10 or so years, I probably have a copy. Some of them are very good, but there are quite a few similar-looking SQL books, with a similar purpose and a similar look-and-feel. So it takes some doing for a new SQL book to rise above the chaff... but SQL Antipatterns by Bill Karwin manages to do so...
Published 18 months ago by Data Guy

versus
6 of 11 people found the following review helpful:
3.0 out of 5 stars A must read for the inexperienced
Bill Karwin style and choice of arranging the material within the chapters made it an easy read. It includes good and accurate examples the reader can test in almost any database system. Overall, the book will save the inexperience from many failures and embarrassment.

I purchased this book hoping to find something new. Unfortunately, I have been in the...
Published 18 months ago by Salomon Young


‹ Previous | 1 2 | Next ›
Most Helpful First | Newest First

19 of 19 people found the following review helpful:
5.0 out of 5 stars A Very Useful and Entertaining Book, July 30, 2010
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
I have a vast collection of SQL books. If it was published in the last 10 or so years, I probably have a copy. Some of them are very good, but there are quite a few similar-looking SQL books, with a similar purpose and a similar look-and-feel. So it takes some doing for a new SQL book to rise above the chaff... but SQL Antipatterns by Bill Karwin manages to do so.

This is not yet another book on SQL syntax or style. SQL Antipatterns is something altogether unique. The book is designed to point out the common things that SQL developers do, that they shouldn't be doing. Each chapter assists the reader in identifying, explaining, and correcting dangerous practices - or antipatterns.

If you take the time to read through this thoughtful book I'm sure you'll recognize some of the antipatterns. Some of you will have done them yourself, whereas others of you probably will have worked to undo some of them.

OK, many of you are still likely to be wondering what exactly is an antipattern is, right? Well, I'll give you one of the examples from Karwin's book -- Jaywalking. This is the first antipattern covered in the book and it is one of my favorites (err, I mean least favorites, I think). Jaywalking is when developers store comma-separated lists in a database column instead of redesigning the database structure in a normalized fashion. Karwin calls this jaywalking because both this practice and actual jaywalking on a street are acts of "avoiding an intersection." Funny...

Each antipatterns is described along with a clear explanation as to why it is a bad practice and advice on building a better solution. Other antipatterns covered in the book are named almost as intriguingly, such as Pseudokey Neat-Freak, Keyless Entry, Magic Beans, See No Evil, and Metadata Tribbles.

The book is not just for unlearning what you shouldn't be doing, it can also be helpful for learning new and improved development techniques. Reading SQL Antipatterns can help you to learn about current technology for full-text search, how to design code that is resistant to SQL injection attacks, and many other techniques for success.

The book is very well-organized into four parts grouping the antipatterns into the following categories: logical database design, physical database design, queries, and application development.

SQL Antipatterns should become a useful tool for DBAs and database programmers to help them create well-designed databases and applications... and to help us eliminate these common errors from our database implementations.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


19 of 19 people found the following review helpful:
5.0 out of 5 stars An excellent guide to Database Design tradeoffs, July 9, 2010
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
I recently got a new job and inherited a vast collection of SQL queries to maintain. Reading Karwin's book has been a tremendous help! Each chapter considers a particular design issue ("How can I store more than one value in a field?") and shows the most common, flawed method (the "antipattern"). He carefully explains the disadvantages, then usually shows several other ways to accomplish the same goal.

One of the things I like best about the book is that the analysis isn't black and white. Every methods has advantages and disadvantages, which Karwin carefully unpacks. He also reviews and clarifies relational theory as he goes: his discussion of "Null" is a masterpiece. In general, he favors solutions that don't subvert the basic principles of relational database theory.

This would not be a good book to try to learn SQL or Database theory from, but if you are just starting to get some real-world experience it is a Godsend. Highly Recommended.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


5 of 5 people found the following review helpful:
5.0 out of 5 stars Great Book for Creating Effecient SQL, August 3, 2010
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
This book is very unique as far as database design and writing SQL statements. I could be called a 'cookbook' or a 'how-to' book, but its much more than that. The word 'antipatterns' means a way of doing something that is counter-productive in some form or another. So its basically of way to NOT do something. That may seem weird, but if you are aware of ways (patterns) that are ineffective, you will try to avoid those ways and be a more effectve programmer, developer, manager, etc.

There are lots of SQL and Database design books on how to do proper SQL statements but there are very few if any on showing students on what NOT to do with SQL. Its a great way to continue to learn SQL and Database design and advance your skills.

The author does an excellent job in going through all the phases of SQL antipatterns.

1. Rounding errors
2. Phamtom files
3. Index shotgun
4. fear of the unknown
5. random selection
6. spaghetti query
7. sql injection
8. magic beans
9. see no evil
10. ambiguous groups

The names may sound funny, but they are very informative and definitley worth understanding to realy be and efficient database programmer.

A great book and a must buy!
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Great book, July 15, 2011
Amazon Verified Purchase(What's this?)
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
I love this book. Would like to see more don't-do-it-this-way books. Some antipatterns seemed obvious to me but there's enough meat in here to chew on for a while.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars The pitfalls of promiscuity, March 4, 2011
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
"SQL Antipatterns" by Bill Karwin is a collection of 4~7 page chapters, each neatly organized into:
1) Here's something people often need to do
2) Here's the stupid solution they often come up with
3) Here's why that's a bad idea
4) Here's what you should do instead

The nice, bite-sized chapters along with the "standalone" nature of each are reminiscent of "Effective Java," another favorite.

Among other cuteness, the author refers to foreign keys that relate to multiple tables as "promiscuous"... I give extra points to anyone who can weave a little innuendo into an SQL text.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Good inventory of common mistakes, November 18, 2010
Amazon Verified Purchase(What's this?)
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
The title only gives a partial idea about the content of the book. It is not only about SQL but also about data modeling. After all, even the best SQL expert cannot do much if the datamodel is a catastrophe.
Most of the ideas are illustrated with a relatively simple but complete example of a bug tracking application. The fact that the same sample application is used throughout makes it very easy to understand and to follow the presented concepts.

About the book organisation, there is an antipattern per chapter and each chapter follows the same structure:
- Objective (problem to solve)
- Antipattern description
- How to recognize the Antipattern (e.g. from questions raised by developers)
- Legitimate uses of the Antipattern
- Solution (a proposed better approach to solve the problem)

Every antipattern is explained in detail (there is almost nothing left to the imagination) and anyone involved in database programming or in data modeling (from novice to experienced) would easily learn how to recognize, and hopefully avoid, suboptimal 'solutions' that could create problems in the future.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Suited for both your coffee table and technical bookshelf, September 12, 2010
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)

Do you know why polymorphism in the database is bad? Put your hand down if you're a DBA, this is for application developers :)

SQL Antipatterns is written in a very astute fashion and manages to be easy reading without being overly didactic - no small feat for a technical book.

The book is sectioned into the short (~10 pages) chapters, one for each antipattern. Each chapter is structured as such:
- intro context, often humorous
- OBJECTIVE/PROBLEM you're trying to accomplish/solve
- Antipattern that is a common pitfall
- How to recognize that pattern
- Legitimate uses of that antipattern
- Solution (the correct one) for your original OBJECTIVE/PROBLEM

One previous reviewer mentioned that the book covers relative basics for an experienced DBA or developer. Indeed, even if you've been developing for a short period chances are you've seen and/or know of maybe half of the antipatterns in this book. But I'd like to point this out: it's been my observation that experts in any field revel in reviewing the basics, even if just for fun. And this book is fun to read, which is why I suggest this could work just as fine on the coffee table as casual reading as it can on the bookshelf as a technical reference.


My only constructive criticism is that I wish there was more content. Database good practices is a very expansive subject, and as I was reading the book I couldn't help but wish the author was "building up to the good stuff" as some other PragProg books do. This book is reasonably priced so it remains good value, but if it was $40+ I might have gave it four stars instead of five for this reason.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Deals with problems related to both database's design and application developing, August 24, 2010
By 
Foti Massimo (Vezia (Switzerland)) - See all my reviews
(REAL NAME)   
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
I must admit that there was barely anything new to me in the book, but I have been in the field for quite a few years, dealing with many projects, so I had the "privilege" of seeing many horror stories. Still, I feel the book is valuable even for seasoned veterans. The main benefit is that the author organized and grouped the anti-patterns, each one is analyzed very well and contains some wise, unbiased suggestions. Each chapter stands on its own and can be read stand-alone.
The book is worth an extra star because it deals with problems related to both database's design and application developing; most book out there either cover one or the other.
This should be a mandatory reading for beginner DBAs and application developers, veterans may like it too, since it can help refreshing some concepts and can be used as a reference too.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars If you want to improve quality of your SQL - buy this book., August 16, 2010
By 
T. Suslin (Boston, MA USA) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
Excellent book.
I was working on a database when i got this book, and upon finishing reading it the first time, i went through it again highlighting things i knew i was doing wrong and taking notes for going back through my code and changing it.

This book does assume that you are already using sql for your project and know what you are doing at least on this side of a database. Using MySQL as an example is also very convenient.

Overall, great book and if you wish to improve on structures of your queries - buy it.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Great Book For Learning Database Trouble Areas, July 27, 2010
By 
This review is from: SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) (Paperback)
Having been a database developer for nearly 10 years, I have learned the trouble areas that we can get into and wished that I had a resource like SQL Antipatterns: Avoiding the Pitfalls of Database Programming long ago.

From dealing with SQL injection to learning how to store data in a more logical way to many other goodies of database programming that will help you from falling on your face, this is a great text. It's also a niche market that I haven't seen in other SQL/database books in the past.

Keeping that in mind, this is by no means a SQL reference book. This is for the experienced database developer/admin that wants to improve their skillset, not learn how to write basic SELECT and UPDATE queries.

Great book!!

***** RECOMMENDED
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


‹ Previous | 1 2 | Next ›
Most Helpful First | Newest First

This product

SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers)
$34.95 $22.71
In Stock
Add to cart Add to wishlist