Here is a great tool for formating SQL:
Instant SQL Formatter
Just a quick update: I updated the PeopleBooks Resources links with some new links and removed the old broken ones. Hope that helps.