add sql homework with joins