Ten Common SQL Programming Mistakes

Articolo che elenca e spiega come evitare i 10 più comuni errori che si fanno con T-SQL, che, secondo l’autore, sono i seguenti:

  1. NULLs and the NOT IN predicate
  2. Functions on indexed columns in predicates
  3. Incorrect subquery column
  4. Data type mismatch in predicates
  5. Predicate evaluation order
  6. Outer joins and placement of predicates
  7. Subqueries that return more than one value
  8. Use of SELECT *
  9. Scalar user-defined functions
  10. Overuse of cursors

Articolo veramente interessante, di breve lettura ma di grande utilità.

http://www.simple-talk.com/sql/t-sql-programming/ten-common-sql-programming-mistakes/