Treasure Chest / Sink-QL
  Treasure Chest  

SINK-QL :
Or, a True
ACCOUNT
O F T H E
Moft Remarkable Miftakes
Committed of late Years upon
PRODUCTION DATABASES

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
(1854-1900)
 

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.