Finished SQL script for Lab 8