• Formatting issues aside, I thought this was a good brain teaser.

    The Redneck DBA