Treasure Chest / Sink-QL
  Treasure Chest  

Or, a True
Moft Remarkable Miftakes
Committed of late Years upon

By DEVELOPERS of Various Origins
Efpecially Banks, Telcos & the Industry
Wherein are contained more efpecially,
Examples of Code which Taketh Water.

One never learns better than through one’s mistakes. However, given the immense scope for mistakes offered by the SQL language, one can also profit from the mistakes of others.

Experience is the name everyone gives to their mistakes.
Oscar Wilde

This section presents true examples from the field of code which we consider to be sometimes dreadful but have nevertheless managed - unless specified otherwise - to make it to production. Obviously, table names, column names and constant values have been changed, but otherwise all quantitative data is genuine.