BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 220401 thumbnail
User 209500 avatar

By rlamarch
via simple-talk.com
Published: Aug 24 2009 / 05:06

Programming in SQL can be both a fun and a challenging task. Even seasoned SQL developers and DBAs can get trapped in one of the many pitfalls of the SQL language. My intention with this article was to highlight some of the more common mistakes that I've seen people make when coding SQL. The list reflects my direct experience working with different development teams and developers, performing code review sessions, and so on, as well as the issues I see every day on the newsgroups and forums. The list of common mistakes is far from exhaustive, and is presented in no particular order of severity.
  • 14
  • 0
  • 1927
  • 0

Comments

Add your comment
User 450272 avatar

Travis Dunn replied ago:

0 votes Vote down Vote up Reply

Great post. Along the same lines, if you're using ORM magic make sure to review your generated queries to verify they're not magically suboptimal. Active Record, I'm looking at you.

User 294184 avatar

mrjohnson replied ago:

0 votes Vote down Vote up Reply

SQL *Server*.

User 431055 avatar

jfernandez replied ago:

1 votes Vote down Vote up Reply

The problems and solutions are pretty generic. I don't use SQL Server and the article was fully useful to me.

User 294184 avatar

mrjohnson replied ago:

-1 votes Vote down Vote up Reply

I just find it really annoying when people call it SQL not SQL Server. It causes confusion... But I suppose that was the point.

User 327526 avatar

chase.saunders replied ago:

0 votes Vote down Vote up Reply

Good one.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.