completed sql chapter