IMO it would be nice if you broke the SQL up into multiple lines here; scrolling crazy!