SQL script to cover the "joins and statistics" tutorial.