Assignment 2: SQL Solution