Bad SQL Cartoons

Santa queries database

Santa queries database

Have you been good this year? Well, let’s just hope that Santa will figure out his SQL by Christmas...

Asc, desc, whatever

Asc, desc, whatever

Sometimes you write the most sophisticated query and celebrate the results. Only to find out that you forgot something as trivial as a sort order...

Sum(id)

Sum(id)

If the numbers look too good, check the SQL.

'Do not use' client

'Do not use' client

Without good understanding of database schema it is easy to make mistake joining tables which can cause serious error in the results.

Subscribe weekly cartoon Use cartoons